users@glassfish.java.net

Re: PermGen problem - class loader does not collect

From: <glassfish_at_javadesktop.org>
Date: Fri, 27 Jun 2008 20:36:33 PDT

I used the previous switches and saw the gc working in the PermGen space. But by touching various code paths of the application, I managed to repeat the problem (the jdbc driver was just one potential cause), so there are more.

Try to use jmap/jhat, as for example in:
http://weblogs.java.net/blog/jfarcand/archive/2006/02/using_mustangs.html

You need to see the live reference paths to the leaked WebappClassLoader objects.
[Message sent by forum member 'andreou' (andreou)]

http://forums.java.net/jive/thread.jspa?messageID=283072