Gateway JAVA process getting heap alerts from Appdata Dynamics monitoring 97.0% production only
Turned debug on for the gateway GC logging in /opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh
NODE_OPTS="$NODE_OPTS -Xlog:gc*=debug:var/logs/ssg_gc.log"
However before enabling in production need to understand how large files will grow and how many files will be created.
Gateway 11.1
Size and rotation of ssg_gc log:
GC logging changed in the latest JVM it’s is now handled by framework XLog - autoconfigured for 6 files 20MB each
https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#convert-gc-logging-flags-to-xlog
I did run a long test to confirm the size and number of files 6 logs file 20MB each, total 120MB
Label:
ssg_gc.log
ssg_gc.log.0 through ssg_gc.log.4
To modifiy see the example below rotates after 20 files with each on being 25 MB = ~ 500MB
edited the file: /opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh
LINE:
NODE_OPTS="$NODE_OPTS -Xlog:gc*=debug:file=var/logs/ssg_gc.log::filecount=20,filesize=25M