How to disable full GC triggered by System.gc()
search cancel

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: 

  1. vi /opt/SecureSpan/Gateway/node/default/etc/conf/node.properties 
  2. add one line 
    node.java.opts = -XX:+DisableExplicitGC
  3. restart the ssg to take effect.
  4. Do the same on all the nodes