Configure Garbage Collection Logging

To configure garbage collection logging on the gateway:
gateway83
This is an advanced topic. Configure garbage collection only under the direction of CA Support.
To configure garbage collection logging on the
CA API Gateway
:
  1. Access the privileged shell.
  2. Open the following file in a text editor:
    /opt/SecureSpan/Gateway/runtime/etc/profile.d/appliancedefs.sh
  3. Add the following block above the section "# Reserve ports 7001 and 7100 on the appliance".
    NODE_OPTS="-Xmx${java_ram}k -Xss256k -XX:+UseParallelOldGC"
    NODE_OPTS="$NODE_OPTS -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation"
    NODE_OPTS="$NODE_OPTS -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=20M -Xloggc:var/logs/ssg_gc.log"
  4. Save and exit the 
    appliancedefs.sh
    file.
  5. Restart the Gateway:
    # service ssg restart