Change location of Java Heap dump for Software Gateway
search cancel

Change location of Java Heap dump for Software Gateway

book

Article ID: 404876

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

How to change the location of Java Heap dump to /tmp for Software Gateway installations?

Environment

All Supported versions of API Gateway

Resolution

Take a backup of /opt/SecureSpan/Gateway/runtime/etc/profile.d/ssgruntimedefs.sh file.

Add the following parameter to /opt/SecureSpan/Gateway/runtime/etc/profile.d/ssgruntimedefs.sh file.

Original line:

default_java_opts="$default_java_opts -Djava.awt.headless=true -XX:CompileThreshold=1500 "

Modified line:

default_java_opts="$default_java_opts -Djava.awt.headless=true -XX:CompileThreshold=1500 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/tmp/heap.hprof""

Restart gateway for the changes to apply.

Additional Information

Make sure that the partition of the dump location has enough space. Also, note that /tmp is wiped on a reboot... so it is better to use a permanent directory.