Maros Bajtos [http://community.jboss.org/people/maros.bajtos] created the 
discussion

"Re: Terrible performance with lot of concurrent ejb calls - 
SecurityActions.loadClass"

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

--------------------------------------------------------------
We have security-domain in our jboss-app.xml, I guess that counts too. I just 
tried to turn off RoleBasedAuthorizationInterceptorv2 in jboss-ejb3-core.jar, 
but it didn't help much, I think there are more places where 
SecurityActions.loadClass is called. Btw I realized that the the number of ejb 
calls is even higher, so it's like thousands of calls - that would explain why 
the performance is so terrible - ClassLoader.loadClass is called so many times, 
that even small overhead of managing lock can degrade performance significantly 
(especially with many threads calling that method and blocking each other).

I think we will consider change of implementation a bit and don't use EJBs so 
often, but anyway, I think this extreme case is showing some performance 
problems very well.

I can't attach the application, since it is proprietary:( I will try to append 
profiler snapshots tomorrow.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/574096#574096]

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

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to