[Java SE] GC is Extremely Slow Due to System Swap Activity
(Doc ID 1262554.1)
Last updated on NOVEMBER 01, 2022
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:
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