[jboss-user] [EJB 3.0] - How can you turn of EJB 3 invocation statistics

Andrig Miller do-not-reply at jboss.com
Thu May 20 12:19:21 EDT 2010

Andrig Miller [http://community.jboss.org/people/andy.miller%40jboss.com] replied to the discussion

"How can you turn of EJB 3 invocation statistics"

To view the discussion, visit: http://community.jboss.org/message/544086#544086

> Carlo de Wolf wrote:
> First I want to see some measurements to know the extend of the problem and to have a base of comparison.
Well, I did measurements.  I ran a test with 5 stateless session beans that did nothing but call each other and return.  I did this on a 8 core system with Hyperthreading (16 virtual cores), at 600 users with no think times.  Just hammer the server.

In that test, I could only measure an average of 1.33% difference between running with the statistics, and running with a patched server with all statistics completely removed from the container.

After going through the trouble to remove the statistics competely from the container, the results make sense to me know.  The reason I thought this might be an issue is a customer had e-mailed me saying he thought it was a bottleneck.  I need to get back to him, and see why he thinks that is true, and what he is seeing.  My tests simply don't back that up.  In the code, we are already using volatiles for all the counters, and a ConcurrentReaderHashMap to store the instances of the InvocationStatistics object (which makes complete sense in that you only create the instance once and store it once, and the rest of the time is spend getting from the HashMap).  The only synchronization, that seemed problematic, is in the "concurrent calls" code (callIn, callOut methods), but my test proves its not a real issue.

So, I'll turn my attention elsewhere.


Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100520/1e95531d/attachment.html 

More information about the jboss-user mailing list