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
[http://community.jboss.org/message/544086#544086]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to