Tags » Jmap

Heap dump in Java

jmap -J-d64 -dump:live,format=b,file= 

One can then import the dump to jprofiler or jvisualvm


Memory Analysis - How to obtain Java Heap Dump?

In this article we will see how to obtain the Java Heap Dump to troubleshoot the memory issues like memory leak and high usage of memory. 332 more words


Steps for taking Thread and Heap Dumps

  1. find the PID using
    • jps -v   OR
    • ps -ef | grep -i java
  2. Thread Dump:
    • JRockit:  jrcmd <PID> print_threads >> path (example: /home/hasanr/threadDump.log)
    • JDK 1.7 or higher: jcmd <PID> Thread.print >> sample.txt…
  3. 199 more words
JDK Tools

Heap Dump Generation

Java memory model consists of Heap memory, Thread stacks, Perm gen area.
Heap is memory area which is used for allocating memory for class instances and arrays are created. 412 more words