Hi Guys,

We face occasionally situation when ofbiz tomcat stops responding to apache
httpd requests and it is all ends up with "503 server temporarily
unavailable". Some research gave us hint that it can be coupled that tomcat
is running out of available threads in the pool while apache http keeps
sending requests. So our guess it is the problem in config of the threads
number figure. The question is what would be correct numbers in such setup.

Apache httpd

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>


Tomcat is default numbers from ofbiz-containers.xml

 <property name="address" value="0.0.0.0"/>
            <property name="backlog" value="10"/>
            <property name="maxSpareThreads" value="50"/>
            <property name="maxThreads" value="200"/>
            <property name="minSpareThreads" value="4"/>
            <property name="port" value="8009"/>
            <property name="tcpNoDelay" value="true"/>
            <property name="soTimeout" value="60000"/>
            <property name="tomcatAuthentication" value="true"/>

If someone ran in this sort of config issues please advice. Thank you. Any
ideas are appreciated




--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Number-of-server-threads-Apache-Tomcat-Proxy-problem-tp4638026.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to