Link to home
Start Free TrialLog in
Avatar of sunjoet
sunjoetFlag for United States of America

asked on

configuring apache2, tomcat 5+, and mod_jk for optimum performance

Hi, I configured apache2.2.9, tomcat 5.5.17, and mod_jk to handle 2048 concurrent users. my OS is SUN solaris 10, 8GB RAM 4-UltraSparc III CPUS. apache2 was compile with mpm worker. below is the currently configuration in use for apache2 and tomcat 5.5.17.
<IfModule mpm_worker_module>
   ServerLimit          32
   ThreadLimit          64
   StartServers          2
   MaxClients         2048
   MinSpareThreads      64
   MaxSpareThreads     128
   ThreadsPerChild      64
   MaxRequestsPerChild   0
</IfModule>

in Tomcat 5.5.17 server.xml for the AJP connector:

 <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector port="8909" minProcessors="5" maxProcessors="2048"
               enableLookups="true" redirectPort="8943"
               acceptCount="10" debug="0" connectionTimeout="0"
               maxThreads="2048" minSpareThreads="64" maxSpareThreads="128"
               protocol="AJP/1.3" />

workers.properties file:
worker.list=5517
# configure worker for tomcat 5.5.17  --------------------
worker.5517.port=8009
worker.5517.host=localhost
worker.5517.type=ajp13
worker.5517.cachesize=2048
worker.5517.cache_timeout=300
worker.5517.recycle_timeout=300
worker.5517.socket_timeout=30
worker.5517.socket_keepalive=1
#

Please point out any anomaly found. Is 2048 concurrent users too much for one tomcat/apache server?
ASKER CERTIFIED SOLUTION
Avatar of giltjr
giltjr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
2048 is more than tomcat can carry in any setup.