tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Memory usage raises when reloading a context
Date Wed, 04 Feb 2004 13:45:39 GMT

Howdy,
It's normal: the classloader and associated objects can't get recycled
and classes are stored in the permanent area.  You can tweak the JVM's
MaxPermSize if you'd like.  As you noted, restarting your context all
the time is not a typical production scenario.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Vitor Buitoni [mailto:vitor.buitoni@digitro.com.br]
>Sent: Wednesday, February 04, 2004 6:58 AM
>To: Tomcat Users List
>Subject: Memory usage raises when reloading a context
>
>Every time that i reload a context (through the tomcat manager) the
>memory usage of the tomcat grows up a bit, and it doesn't go down
again.
>Every time the context is reloaded the memory usage raises, until the
>jvm begins to throw OutOfMemory errors. Then i have to restart tomcat
>(of course).
>
>Although this isn't a big problem in a production environment, where
the
>applications keep running without reloads, here in our development
>environment this is becoming a problem, since every time we make a
>modification we have to reload the application.
>
>I downloaded jvmstat to monitor the jvm, and i noticed that when an
>application is reloaded, the overall heap usage increases and the jvm
gc
>moves a lot of objects to the heap's permanent area. I think that this
>might be the main problem. Because even if the old area increases, it
>will sometime get garbage collected and the memory freed. And this i
>could confirm using jvmstat. But the objects that are in the permanent
>area will never be garbage collected.
>
>Is this behaviour normal? Or maybe it's a problem with my specific
>configuration?
>
>I'm using tomcat 5.0.16,  sun jvm 1.4.2_03-b02, redhat 9.
>
>Thanks!
>
>Vitor
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message