IBM Support

How to disable frequent Garbage Collection (GC) calls from the application/agent.

Troubleshooting


Problem

How to disable frequent Garbage Collection (GC) calls from the application/agent.

Symptom

Frequent Garbage Collection impacting system performance may require disabling System.gc() calls from the application/agent.

Error Message

When frequent System Garbage Collection calls are issued by an application (without having Full GCs), the result is significant time spent on overall Garbage Collection.

Resolving The Problem

 

There are times that the application or the custom code or even specific AppServer/JVM settings can cause frequent System.gc () calls instead of forcing Full GC. This could deteriorate the overall system performance as significant time is spent on System.gc (). This is true when the Full GC does not take place periodically.
A quick workaround is to disable the System.gc () and force a Full GC.         

The –XX:+DisableExplicitGC command can be passed as a java parameter that disables System.gc() for the JVM.
This virtually enables Full GCs when necessary.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX5814

Product Synonym

[<p><b>]Severity[</b><p>];Normal

Document Information

Modified date:
16 June 2018

UID

swg21554512