You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mondkar, Paresh" <Pa...@Syntelinc.com> on 2004/06/15 07:43:02 UTC

Is tomcat a suitable server for our application ?

> Hi,
> 	We are planning to host a web application which is estimated to have
> around 3000 concurrent users. We are using SQL Server 2000 as database and
> Struts 1.1 framework.
> 
> 	Our production server (i.e. web server. We're having a different
> database server.) has the foll. configuration:
> 4GB Ram
> Xenon P4 processors - 2 nos.
> Windows 2000 Professional OS
> 72 GB HDD
> 
> 	Do you think that Tomcat is a suitable web server for our
> application?
> 
> Thanks & Regards,
> Paresh Mondkar.
> 
____________________________________________
Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.

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


Re: Is tomcat a suitable server for our application ?

Posted by Peter Lin <tc...@yahoo.com>.
 
I would like to add the following.  Probably the biggest factor in webserver performance is the concurrent requests. 3000 concurrent users who request 1 page every 5 minutes doesn't mean anything and most likely won't generate much load.
 
for the sake of illustrating the problem, say the average user makes one request every 5 minutes. that means 10 concurrent requests at any given time.
 
Can Tomcat handle a constant load of 10 concurrent requests? The answer depends on how fast the database returns the resultset. If the average page processing time is 300 milliseconds, then most likely it won't be an issue for the webserver or database.
 
On the otherhand, if you're talking about 3K concurrent users with an average of 1 request every minute, Sql Server will be the bottleneck.
 
the optimal worker thread to CPU ratio is 2 workers:1 CPU.  With a rate of 1 request/minute, it means the average load is 50 concurrent requests.  Given your database only has 2 CPU's, it's going to have a hard time keeping up.
 
2 CPU's will give you 4 worker threads. Anything over 4 queries will be queued up until a query is done and a worker thread is ready for another query. I don't know what your queries are like, but say it takes 200ms to process the queries.  that would mean your database server can handle 20 queries per second.
 
your webserver won't be a bottleneck in the setup you described. I hope that helps.
 
peter


Justin Ruthenbeck <ju...@nextengine.com> wrote:

Can Tomcat handle 3000 concurrent sessions? Yes. The bottleneck will 
not be Tomcat, per se, but rather either hardware resources (memory on 
the heap) or database connections. What you really need to figure out is 
how *active* those 3000 users will be -- 3000 users actively querying 
financial data reports is VERY different than 3000 users reading today's 
news reports.

Point being that the question to ask is not whether Tomcat will support 
3000 concurrent users. This is a question of resource availability. The 
question should be: can my one machine running with MY APPLICATION, 
Tomcat and the hardware specs you gave support 'X' simultaneous requests 
with a minimum/average request processing time of 'Y' milliseconds?

No one here will have the answer to that, of course.

justin


At 10:43 PM 6/14/2004, you wrote:
> > Hi,
> > We are planning to host a web application which is estimated to have
> > around 3000 concurrent users. We are using SQL Server 2000 as 
> database and
> > Struts 1.1 framework.
> >
> > Our production server (i.e. web server. We're having a different
> > database server.) has the foll. configuration:
> > 4GB Ram
> > Xenon P4 processors - 2 nos.
> > Windows 2000 Professional OS
> > 72 GB HDD
> >
> > Do you think that Tomcat is a suitable web server for our
> > application?
> >
> > Thanks & Regards,
> > Paresh Mondkar.
> >
>____________________________________________
>Confidential: This electronic message and all contents contain 
>information
>from Syntel, Inc. which may be privileged, confidential or otherwise
>protected from disclosure. The information is intended to be for the
>addressee only. If you are not the addressee, any disclosure, copy,
>distribution or use of the contents of this message is prohibited. If you
>have received this electronic message in error, please notify the sender
>immediately and destroy the original message and all copies.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________


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


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Re: Is tomcat a suitable server for our application ?

Posted by Justin Ruthenbeck <ju...@nextengine.com>.
Can Tomcat handle 3000 concurrent sessions?  Yes.  The bottleneck will 
not be Tomcat, per se, but rather either hardware resources (memory on 
the heap) or database connections.  What you really need to figure out is 
how *active* those 3000 users will be -- 3000 users actively querying 
financial data reports is VERY different than 3000 users reading today's 
news reports.

Point being that the question to ask is not whether Tomcat will support 
3000 concurrent users.  This is a question of resource availability.  The 
question should be: can my one machine running with MY APPLICATION, 
Tomcat and the hardware specs you gave support 'X' simultaneous requests 
with a minimum/average request processing time of 'Y' milliseconds?

No one here will have the answer to that, of course.

justin


At 10:43 PM 6/14/2004, you wrote:
> > Hi,
> >   We are planning to host a web application which is estimated to have
> > around 3000 concurrent users. We are using SQL Server 2000 as 
> database and
> > Struts 1.1 framework.
> >
> >   Our production server (i.e. web server. We're having a different
> > database server.) has the foll. configuration:
> > 4GB Ram
> > Xenon P4 processors - 2 nos.
> > Windows 2000 Professional OS
> > 72 GB HDD
> >
> >   Do you think that Tomcat is a suitable web server for our
> > application?
> >
> > Thanks & Regards,
> > Paresh Mondkar.
> >
>____________________________________________
>Confidential:  This electronic message and all contents contain 
>information
>from Syntel, Inc. which may be privileged, confidential or otherwise
>protected from disclosure. The information is intended to be for the
>addressee only. If you are not the addressee, any disclosure, copy,
>distribution or use of the contents of this message is prohibited.  If you
>have received this electronic message in error, please notify the sender
>immediately and destroy the original message and all copies.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________


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


RE: Is tomcat a suitable server for our application ?

Posted by SH Solutions <sh...@gmx.net>.
Hi

> 	We are planning to host a web application which is estimated to have

> around 3000 concurrent users. We are using SQL Server 2000 as database 
> and Struts 1.1 framework.
> 
> ...
> 
> 	Do you think that Tomcat is a suitable web server for our 
> application?

For 3000 connections you should use multiple tomcats with some load balancer
in front of it.
And don't forget to check heap sizes regulary. You need to configure the JVM
to use more than 64 MB and you might need to buy more Ram, if you have huge
sessions. [And for 3000 connections you should really think about caching a
lot of memory information in you application instead of drangling the
database - but this requires even more memory.]

Regards,
  Steffen


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