My Oracle Support Banner

[Java SE] GC is Extremely Slow Due to System Swap Activity (Doc ID 1262554.1)

Last updated on OCTOBER 21, 2019

Applies to:

Java Platform, Standard Edition - Version 1.4.2 and later
Information in this document applies to any platform.


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]


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.