> From: Peter Crowther [mailto:[EMAIL PROTECTED]
> Subject: RE: Question about Tomcat context
>
> > From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED]
> > JAVA_OPTS="-XX:MaxPermSize=512m -Xms24m -Xmx512m"

For server environments, you usually want to set Xms to the same value as Xmx 
to avoid heap thrashing.  Make sure you have enough RAM on the system to 
support not only the Java heap and PermGen spaces, but also the C heap, code 
space, and library/OS overhead.  If you don't have enough RAM, you'll get into 
paging, and your performance will disappera.

> > It's seems that tomcat have the memory but don't give to the
> > différents contexts

Heap memory is shared across all webapps, since they're all running in the same 
JVM; there's no way to provide separate heap space for each webapp.

> I'm simplifying here - you're better off reading the JVM docs
> or waiting for Chuck* to tell me I'm wrong ;-).

Nothing wrong here.

> Low free memory is not necessarily a problem - the
> JVM may just be being lazy about garbage collection.

Try using JConsole to watch the heap and PermGen while Tomcat's running; this 
will show if you are approaching a tight situation on memory space. (JVisualVM 
can also be used, but it's not as detailed.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to