> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Subject: Re: Memory leaks on webapp redeploy
> 
> Last time I checked, Class objects basically never get GC'd,
> so any static data stays around forever. You have to shut
> down the VM in order to free that memory.

Not true - classes do get cleaned up, if there are no references to
them.  If you turn on enough GC tracing options, you can see this
happening, especially with anonymous classes, which are created and
destroyed with great frequency.  The problem is retained references to
either the associated classloader or instances of java.lang.Class; as
long as these exist, the class objects won't go away.

(The reports that JRockit doesn't run into the OOME is either a bug in
JRockit - releasing classes while there are still references to them -
or an aspect of JRockit not segregating java.lang.Class instances in a
relatively small space separate from the rest of the heap.)

 - 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