Generating a Heap Dump and Its Analysis
You can create the memory dumps to analyze using the Heap Analyzer in the Applicare console (Analyzers -> Heap Analyzer). Below is the relevant section from the Heap Analyzer documentation:
Heap Dump
You can generate a heap dump of the selected server by clicking on the Heap Dump button. Please note this will make the server unresponsive until the heap dump is written to a file on the server. Generating heap dumps on demand is available on
- Sun JVM 6 and above.
- Oracle JRockit R28 and above.
Also, you can enable automatic heap dumps on supported JVMs when available free memory reaches a certain threshold by setting the following two startup arguments:
-Dapplicare.dumpheap.perc=10
-Dapplicare.dumpheap.maxcount=2
This will generate heap dumps when the server's available free heap size reaches 10% of the max heap size and will create a maximum of 2 heap dumps during the lifetime of the JVM.
You can use the generated heap dumps to detect memory leaks and analyze the objects and their relationships by loading the heap dump in the Memory Analyzer.
Please sign in to leave a comment.
Comments
0 comments