Hi Jean,
I think we have already done that
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
But on Jboss the threads keep on growing, I did a simple netstat on port 8009 on Apache Web and App servers and the count does not synchronizes between them (on Web there are more then 100 connections and on App there are thousands of them) and I reckon this will grow till my max connection setting in Jboss
Apache WebServer 8009 connections
netstat -o | grep 8009 | wc -l
113
Jboss Application Server 8009 connections
netstat -o | grep 8009 | wc -l
2705
Regards
You need thread dumps of the Jboss AS to find where the thread are waiting. You can also change to the normal connector (native="false" the configuration.
I ran into this issue, appeared to have a lack of AJP connections feeding info to the balancer. Try adding the following max-connectors parameter in your standalone-ha.xml based upon which connector you are using:
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="3000"/>
<connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp" max-connections="3000"/>
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true" max-connections="3000">
I have around 1200 concurrent users, just picked a higher value and like magic it started behaving itself.
kevgo.