I tried to figure out how the container-managed security is handled when the
tomcat is running inside the jboss.
1. I found the source code for SecurityAssociationValve. However, I did not see
any where this valve is configured in the server.xml and it is clearly used in
JBossSecurityMgrRealm
I used jbossprofile to prfoile my jboss server. When I gave a light loading
the server, everything works fine. However, when I start to hit the server
heavily, for example 10 clients at the same time. There are a lot of outmemory
exception. However, without Jboss-profiler, my system can handle
It turns out if application exception is throwed in my application(which is
caught and ahndled by my applicaiton ), the outmemory error occurs. Therefore I
suspect that this is a jboss profiler bug which can not handle the exception
event correctly
View the original post :