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.
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
Take the affected JBoss out of rotation.
Get the thread dump.
jstack <pid> >dump.txt
- Get the heap dump.
jmap -dump:live,format=b,file=/<some_path>/heap.hprof <pid>