Advertisement

10.09.2008 at 09:21PM PDT, ID: 23803173 | Points: 500
[x]
Attachment Details

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

Tags:

apache.org, tomcat, 5.5.+

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?
Top Expert: giltjr
Expert Since: 11/03/2004
Accepted Solutions: 2188
Computer Expertise: Intermediate
giltjr has been an Expert for 4 years 2 months, during which he has posted 10164 comments and answered 2188 questions. giltjr is just one of 322 experts in the Apache Tomcat Application Server Zone.
 
 
20081119-EE-VQP-47 / EE_QW_2_20070628