How to analyze PermGen space?

user1325695 picture user1325695 · May 25, 2012 · Viewed 8.1k times · Source

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?

Answer

Srinivas M.V. picture Srinivas M.V. · May 25, 2012

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.