Solved

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

Posted on 2008-10-09
3
902 Views
Last Modified: 2013-12-16
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?
0
Comment
Question by:sunjoet
3 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 22688455
--> Is 2048 concurrent users too much for one tomcat/apache server?

It depends.

That is like asking, "Is 5 boxes to many boxes for one person to carry?"

How big are the boxes and what is in them.  I can easily carry 5 boxes are 2 inches by 2 inches with nothing in them.  But there is no way I could carry 5 boxes that are 3 feet x 3 feet packed full of iron.

You have to look at what your application is doing.

I will say that typically most servers will not handle that many concurrent users, unless you happen to be running one of IBM's zSeries servers.  Normally you can count on a couple hundred concurrent users max.

0
 
LVL 61

Expert Comment

by:gheist
ID: 22695337
2048 is more than tomcat can carry in any setup.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now