Search code examples
javajvmpermgen

How to analyze PermGen space?


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?


Solution

  • For Memory Analysis

    1. Use jvisualvm.exe present in bin directory of JDK

    2. Using jvisualvm take the Thread/Heap dump depending on the process id of the Application you need to profile.

    3. Memory Analyzer (MAT) an eclipse plugin. where you can import the heap dump from jvisualvm and analyze for possible leaks.