How to disable full GC triggered by System.gc()
book
Article ID: 129927
calendar_today
Updated On:
Products
STARTER PACK-7
CA Rapid App Security
CA API Gateway
API SECURITY
CA Mobile API Gateway
Issue/Introduction
Customer has a problem with commercial servers. Full GC occurs every 20 minutes. GC occurs and response time increases by 2-3 seconds.
Environment
Release:
Component: APIGTW
Resolution
from the gc log, the frequent full gc are triggered by System.gc(), add the following java option can disable it,
-XX:+DisableExplicitGC
Steps:
- 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
Feedback
thumb_up
Yes
thumb_down
No