Reputation: 3680
We observe high CPU usage by jboss 5.1 while doing load test.
In server.xml located in jboss-5.1.0.GA\server\default\deploy\jbossweb.sar path, we have done the thread-configuration in the connector in the below way
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
Also we have increased the JVM size to 1.5 gig in jboss's start-up files.
But still we see high CPU usage by the server (nearly 95 to 98 % of use) and this some times goes more and the server gets crashed and results in OutOfMemory exception.
Previously while we were having jboss 4, we were not facing this issue, but now after migrating to jboss 5 we get this. Can any one suggest on this please ??
Upvotes: 0
Views: 841
Reputation: 272237
I would take a thread dump and check the memory pool usage to see what's going on in your JBoss instance.
Upvotes: 1