tomcat heap dump
search cancel

tomcat heap dump

book

Article ID: 333515

calendar_today

Updated On: 02-11-2025

Products

VMware Smart Assurance

Issue/Introduction

Logging out of heap space errors in tomcat by enabling java heap dump file

Environment

Watch4Net/M&R 7.x

Resolution

  • Login to Frontend Host.
  • cd /opt/APG/bin

     

  • vi apg-tomcat-default
  • Change
     -Xmx****m -javaagent 

    to

     -Xmx****m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump -javaagent 
  • Adding the above entry will generate the heapdump file under the /tmp folder when the tomcat crashes.
  • Restart all the services by running the command:
    ./manage-modules.sh service restart all

    ** Attaching the screenshot for reference.