Collecting Heap Dump and Thread Dump

Overview

You may come across cases where the JBoss instance is crashing frequently due to memory issues. In such cases, it is recommended to check the heap dumps and thread dumps to further analyze the issue. This article shows how to collect heap dumps and thread dumps.

Environment

JBoss Application Server (JBoss AS) is an open-source, cross-platform Java application server developed by JBoss, a division of Red Hat Inc. JBoss AS is an open-source implementation of Java 2 Enterprise Edition (J2EE) that is used for implementing Java applications and other Web-based applications and software.

Products: Endeavour, Gemini, Connect CLM 

Resolution

  1. Take the affected JBoss out of rotation.

  2. Get the thread dump.

    jstack <pid> >dump.txt
  3. Get the heap dump.

    jmap -dump:live,format=b,file=/<some_path>/heap.hprof <pid>

Comments

0 comments

Please sign in to leave a comment.