Apache with JBOSS using AJP (mod_jk) giving spikes in thread count Apache with JBOSS using AJP (mod_jk) giving spikes in thread count multithreading multithreading

Apache with JBOSS using AJP (mod_jk) giving spikes in thread count


We are experiencing similar issues. We are still working on solutions, but it looks like alot of answers can be found here:

http://www.jboss.org/community/wiki/OptimalModjk12Configuration

Good luck!


Deploy the Apache native APR under jboss/bin/native.

Edit your jboss run.sh to make sure it is looking for the native libs in the right folder.

This will force jboss to use native AJP connector trheads rather than the default pure-java ones.


You should also take a look at the JBoss Jira issue, titled "AJP Connector Threads Hung in CLOSE_WAIT Status":

https://jira.jboss.org/jira/browse/JBPAPP-366