You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jiang, Peiyun" <Pe...@nrc-cnrc.gc.ca> on 2005/02/02 18:53:48 UTC

Memory Requirement

I have two questions:

(1) How much memory to give to JVM to run tomcat? As mush as possible?
(2) How to reasonably estimate the memory requirement for a web application
running in tomcat?

Thanks.

Peiyun Jiang

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


Re: Memory Requirement

Posted by Peter Lin <wo...@gmail.com>.
the best way to figure out how much heap to set is to stress test your
application.

1. figure out the average load
2. figure out the peak load
3. stress test the webapp with default settings
4. tweak the settings and retest
5. compare the results


there's no magic formula that works for all cases. only way to know
for sure and be able to state with confidence to those you report to
is to run stress tests.

peter


On Wed, 2 Feb 2005 12:53:48 -0500, Jiang, Peiyun
<Pe...@nrc-cnrc.gc.ca> wrote:
> I have two questions:
> 
> (1) How much memory to give to JVM to run tomcat? As mush as possible?
> (2) How to reasonably estimate the memory requirement for a web application
> running in tomcat?
> 
> Thanks.
> 
> Peiyun Jiang
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

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