How to disable full GC triggered by System.gc()
Article ID: 129927
CA Rapid App Security
CA API Gateway
CA Mobile API Gateway
Customer has a problem with commercial servers. Full GC occurs every 20 minutes. GC occurs and response time increases by 2-3 seconds.
from the gc log, the frequent full gc are triggered by System.gc(), add the following java option can disable it,
- vi /opt/SecureSpan/Gateway/node/default/etc/conf/node.properties
- add one line
node.java.opts = -XX:+DisableExplicitGC
- restart the ssg to take effect.
- Do the same on all the nodes