How to change the location of Java Heap dump to /tmp for Software Gateway installations?
All Supported versions of API Gateway
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.
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.