On Aug 27, 2008, at 5:03 AM, Monteiro Jean-Louis wrote:

Hi again,


I've done some tests with MDB and ActiveMQ.

I identified a bottleneck on ActiveMQ. The class is org.apache.activemq.management.CountStatisticImpl As you can see, this class is used for JMX statistics. But, even if management system property is not set, this class is used.

Some methods of this class call "updateSampleTime();"
Here is the definition of this method:
protected synchronized void updateSampleTime() {
  lastSampleTime = System.currentTimeMillis();
}

First it's synchonized and then it does a native (system) call which is very bad for performances (system CPU usage).
I've checked trunk (5.x) version and it seems to be patched.

So what can we do ?
--> go to 5.x version ?
--> add a patch to the current 4.1.1 version ?


Looks like there was a 4.1.2 released in April, wonder if that still has it.

Also looks like there's a 4.1.3 version in their JIRA so if it is we should definitely get a patch for that.

We could try the upgrade route but I'm not sure of the Java EE 5 TCK status of 5.x.


-David



Reply via email to