Possible Duplicate:
How to analyze PermGen contents?
I want to know what is occupying the PermGen space - string intern() or classes? Is there any tool which will help with this analysis?
For Memory Analysis
Use
jvisualvm.exe
present in bin directory of JDKUsing jvisualvm take the Thread/Heap dump depending on the
process id
of the Application you need to profile.Memory Analyzer (MAT) an eclipse plugin. where you can import the heap dump from jvisualvm and analyze for possible leaks.
You can use monitoring tools that are in the bin folder of your jdk, as "jvisualvm" or "jconsole"
I use Yourkit to analyse what is in the heap-space. It is not free but it is a really big help when analysing memory issues and/or performance issues. (They have an evaluation version)
来源:https://stackoverflow.com/questions/10753176/how-to-analyze-permgen-space