Java Performance Tuning: GC is Extremely Slow Due to System Swap Activity (Doc ID 1262554.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Java Platform, Standard Edition - Version 1.3.1 to 7 [Release 1.3 to 7]
Information in this document applies to any platform.
***Checked for relevance on 28-OCT-2012***

Symptoms

Garbage Collection (GC) takes a very long time to complete.  During this time any application threads are all paused and the application seems to hang.  If the Java option -XX:+PrintGCDetails is used to report the GC activity, a very long "real" time will be reported, while "user" and "sys" times are much smaller:

[PSYoungGen: 33333K->0K(2649536K)] [PSOldGen: 3947221K->2898114K(5120000K)] 3980555K->2898114K(7769536K) [PSPermGen: 524287K->222489K(524288K)], 1245.9340459 secs] [Times: user=10.46 sys=0.99, real=1245.94 secs]

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms