please help me to tune my servers when number of connection in one time more that 500 my httpd just freezes and stop responding.
I'm having same configuration since 2008 and now have added some RAM now I have 32 Gb on each of two servers
First one has installed RHEL 5 64 bit 2.6.18-53.1.4.el5xen it delivers jnlp to clients who after connected to second server
Apache 2.2.3 httpd.conf
<IfModule prefork.c>
StartServers 8
MinSpareServers 10
MaxSpareServers 75
ServerLimit 1100
MaxClients 1100
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
java 1.6.0_27 process with following parameters
java -server -Xmx1280M -XX:MaxPermSize=256M -Djava.awt.headless=true ...
tomcat server.xml with following parameters
... connectionTimeout="12000" maxSpareThreads="250" protocol="AJP/1.3"
maxHttpHeaderSize="8192" disableUploadTimeout="true" minSpareThreads="25"
useBodyEncodingForURI="true" maxThreads="500" acceptCount="100"
enableLookups="false" ...
Second server has only JVM java process HW same as above freezes when number of users connected more than 600 I have changed Xmx from 4000m to 26g yesterday with hope that this will allow to use more RAM for this process. but don't see that it uses more than 4g in top.
java -server -Xmx26g -Djava.awt.headless=true -Dfile.encoding=UTF-8 -jar
top - 01:34:10 up 252 days, 8:02, 1 user, load average: 0.00, 0.02, 0.00
Tasks: 127 total, 1 running, 126 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.8%us, 0.2%sy, 0.0%ni, 97.7%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 37049860k total, 3225916k used, 33823944k free, 331836k buffers
Swap: 10223608k total, 0k used, 10223608k free, 2409808k cached
top - 03:57:04 up 252 days, 8:02, 1 user, load average: 0.01, 0.02, 0.00
Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 37108368k total, 36117600k used, 990768k free, 218364k buffers
Swap: 2031608k total, 120k used, 2031488k free, 33518948k cached
please help me to solve this. I'm planing to upgrade all this but not sure if my java program will work with new versions of rhel apache tomcat and jvm.