How do I create a Java heap dump?

Solution Verified - Updated -


  • We are experiencing weird behavior and out of memory issues.
  • How do I create a Java heap dump?
  • Getting Core Dumps in /home/jboss.
  • Can the following parameter be used in the cluster environment on each node without any problem?
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="abc/xzy/heap_dump"
  • How to configure JBoss to take the Heap dump automatically at the time of issue ?
  • How to generate heap Dump after process got killed?
  • Is there any way in a Domain Environment to specify where to write a java heapdump.Where is generated the Heapdump? Can I set up a concret folder in each profile?
  • I want to know how to generate heap dump in JBoss? Will it require downtime?


  • Java
    • Oracle (Sun) JDK
    • OpenJDK
    • HP-UX JDK
    • JRockit

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In