]
Tom Jenkinson resolved JBTM-1340.
---------------------------------
Resolution: Out of Date
I am closing this as out of date. I can't replicate the performance issue with the
current version of Narayana. I built a simple harness using JProfiler and will attach the
test I am using and output - enabled() does not appear in the list of hotspots.
If you can replicate, please can you attach a test class and instructions on how to
observe and I will look again.
BeanPopulator overhead needs looking into
-----------------------------------------
Key: JBTM-1340
URL:
https://issues.jboss.org/browse/JBTM-1340
Project: JBoss Transaction Manager
Issue Type: Enhancement
Components: Common
Affects Versions: 4.17.2
Environment: Mac OS 10.7
Reporter: Mark Little
Assignee: Tom Jenkinson
Fix For: 5.next
During profiling, BeanPopulator can represent a 7% overhead. It may not seem like a lot,
but for something as relatively simple as what BeanPopulator should be doing, it seems to
be quite a bit.
6.9% - 4,477 ms - 10,000 inv. com.arjuna.ats.arjuna.coordinator.TxStats.enabled
6.9% - 4,477 ms - 10,000 inv.
com.arjuna.ats.arjuna.common.arjPropertyManager.getCoordinatorEnvironmentBean
6.9% - 4,476 ms - 10,000 inv.
com.arjuna.common.internal.util.propertyservice.BeanPopulator.getDefaultInstance
6.9% - 4,476 ms - 10,000 inv.
com.arjuna.common.internal.util.propertyservice.BeanPopulator.getNamedInstance
2.5% - 1,587 ms - 10,000 inv. java.lang.StringBuilder.<init>
2.3% - 1,507 ms - 10,000 inv. java.lang.StringBuilder.toString
0.0% - 320 µs - 10,000 inv. java.util.concurrent.ConcurrentMap.containsKey
0.0% - 61 µs - 10,000 inv. java.lang.Class.getName
0.0% - 25 µs - 10,000 inv. java.util.concurrent.ConcurrentMap.get