Jonathan Holloway wrote:
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?

There's a pretty good article on the Tomcat website on performance. Did you read it ?

Some comments:
- yes, TC 5 is faster than 4.1, but this is a maximum throughtput mostly; applications may smooth out differences
- don't disable connectionTimeout
- minSpareThreads should be lower, and your value is conflicting with maxSpareThreads ... So set minSpareThreads to 50, and maxSpareThreads to 100
- as usual, the connector is not likely the bottleneck; VM settings and database access likely have more impact


--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Senior Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to