tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: memory required to run webapp without outofmemory
Date Mon, 03 Dec 2007 01:22:47 GMT
> From: teoh [] 
> Subject: memory required to run webapp without outofmemory
> is just by looking at tomcat manager, we can find out maximum memory
>  required to run webapp without out of memory?

Not really - it's much more complicated.  The JVM heap holds objects of
all types, including those from each webapp, ones used by Tomcat, ones
used by the JVM internally, etc.  The heap itself is partitioned into
various areas used for objects of different lifetimes, and garbage
collections occur when an area fills.  Looking at total heap usage at
any given instant of time won't really tell you what portion of the
usage depends on the number of requests that are being processed at that
instant.  Also, there's no guarantee that all requests will consume the
same amount of heap resources.

You generally want to configure the heap as large as you can without
provoking page swapping.  That will likely take some experimentation as
well monitoring.  JConsole provides a decent look at heap usage over
time, but you'll really nead a profiler if you want detailed information
about what your webapps are doing.

A link you may find interesting:

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message