> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat PermGen OutOfMemoryException solution?
> 
> > There is no way to automatically flush the PermGen somehow? 
> > Or, under which conditions can the GC collect undeployed
> > app's classes data?
> 
> I'm pretty sure you can't do that unless you write some JNI code,
> and you might not even be able to do it even then.

You can't.  Before an OOME is presented, the JVM has already cleaned out
the PermGen of any dead instances of java.lang.Class.

This is a pretty decent survey of several reasons why classes can't be
GC'd:
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?
pageId=2669

 - 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