-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Thursday, February 12, 2015 7:35 AM
To: Tomcat Users List
Subject: Re: Help required to calculate Apache Tomcat resource

Email sent from outside of PSEG. Use caution before using links/attachments.


On 12/02/2015 12:19, Paul, Subhro wrote:
> Dear Team,
> 
> I am an application developer from TCS and working for PSEG
> (https://www.pseg.com).
> 
> We are using Apache Tomcat6 as application server for the website.
> Two virtual servers are configured for this and each one of the
> servers had 2 CPUs and 4 GB RAM until 26 JAN 2015 when both Tomcat
> servers crashed. So we added some resources to the virtual servers
> (Now it is 8CPUs and 8GB RAM each box) and increased maxThread
> parameter of tomcat from default (which is 200) to 300 and restarted
> Tomcat servers. OS of the systems are Linux6.5 .
> 
> We need to know what the relationship between thread and memory is.
> If N numbers of requests coming to the server how many threads can
> process that and how much memory is required for that. Actually we
> are targeting to increase the maxThread count upto 500 but we need to
> calculate that, to process this much of threads what will be the best
> Hardware configuration?
> 
> Please let us know if any more information is required for the same.

You only need to send your message once. Sending the same message
repeatedly tends to annoy people and reduces the chances of you getting
a response.

There is no way for anyone here to provide the information you are
looking for. By far the largest determining factor is your application
and the only person with the information about that is you. You need to
do some testing with a profiler to work out the information you are
looking for.

To re-enforce the point I have one customer where a 2-core machine with
1GB ram was configured with maxThread=2000 and was serving requests with
pretty much all of them without breaking a sweat. I have another
customer where a 4-core machine with 16GB ram will fall over with more
than 5 concurrent users.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Hi Mark,

Thanks for your reply. By miss I sent the first e-mail in HTML format which 
could be rejected as described in Apache Tomcat mailing list help so I send the 
second e-mail in plain text format. I will keep your advice in mind. 

Yes. I completely agree with you that we need to do some testing to identify 
the required resources to support and fulfill user expectation and also this 
vary from application to application but is there any default calculation 
present with tomcat? Like, to process output of 1 'X' KB(total response page 
size)request 1 thread require 'Y' MB of RAM with 'A' core 'Z.ZZ' Ghz processor. 
Practically this may differ but if we get theoretical help on this, then before 
going any testing we may justify some resource requirement to client.

Thanks,
Subhro Paul



-----------------------------------------
The information contained in this e-mail, including any attachment(s), is 
intended solely for use by the named addressee(s).  If you are not the intended 
recipient, or a person designated as responsible for delivering such messages 
to the intended recipient, you are not authorized to disclose, copy, distribute 
or retain this message, in whole or in part, without written authorization from 
PSEG.  This e-mail may contain proprietary, confidential or privileged 
information. If you have received this message in error, please notify the 
sender immediately. This notice is included in all e-mail messages leaving 
PSEG.  Thank you for your cooperation.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to