tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiannis Mavroukakis <yian...@jaguarfreight.com>
Subject RE: Tomcat Settings and Performance
Date Fri, 14 Nov 2003 10:00:33 GMT
Jon,

The only limit imposed on the requests to your server, is based on your
memory and i/o capabilities. More threads will not
necessarily improve the situation, I would suggest you look at the amount of
memory you allocate to tomcat, try increasing it
and/or modifying the behaviour of the garbage collector until you get a
satisfatory performance. You can also always look to
your app to identify any bottlenecks, or unreleased resources. I would
suggest upping the thread count as a final step, once 
you've tested with the other options available to you (memory/gc/code).
I'm running Tomcat 4.1.27 which will more than happily accept 100 hits on a
uniproc Linux box.

Good luck,

Yiannis

-----Original Message-----
From: Jonathan Holloway [mailto:jonmwnci@eudoramail.com]
Sent: 14 November 2003 09:47
To: tomcat-user@jakarta.apache.org
Subject: Tomcat Settings and Performance


Dear All,

I wonder if anyone could help with the following.  I'm currently using
Tomcat to host a multiple choice test system.  I have between 100 - 200
people logging into tomcat and sitting a test almost simultaneously when
instructed to by the test supervisor.  Does anybody know what the maximum
number of users supported by a single Tomcat server is?  I'm running a
fairly good server with a dual processor setup and 1Gb of memory.  

When i get around 100 students logging onto a test some of the connections
are refused and the server becomes very slow at handling the requests.  I'm
running Tomcat 5.0 in an attempt to improve this situation?  Is this a
better server than 4.1.24?  The tomcat settings for server.xml follow, can
anybody suggest how to improve the performance of this?

    <Connector port="8080"
               maxThreads="400"  
               minSpareThreads="200"        
               maxSpareThreads="75"
               enableLookups="false" 
               redirectPort="8443" 
               acceptCount="400"
               debug="0" 
               connectionTimeout="-1"
               disableUploadTimeout="true" />

I've set the processors to 2x the number of simultaneous requests I expect
(200 at the mo.) starting at 200 threads initially.  The accept count is set
at 400 so that this number of threads are queued to be serviced by tomcat, I
don't want any user to be kicked off so the connection timeout is set to -1.

Can anybody suggest anything to improve the performance of this system?

Many thanks,
Jon.


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message