Tag

XStream

0 views collected around this technical thread.

DeWu Technology
DeWu Technology
Jul 13, 2022 · Backend Development

Diagnosing G1 Young GC Slowdown Caused by Excessive XStream ClassLoader Creation

The investigation revealed that repeatedly creating XStream objects generated thousands of CompositeClassLoader instances, inflating the JVM’s SystemDictionary and causing extremely long Ext Root Scanning during G1 Young GC pauses, which was resolved by caching XStream per class and reducing YGC pauses from seconds to milliseconds.

ClassLoaderG1GCJava
0 likes · 17 min read
Diagnosing G1 Young GC Slowdown Caused by Excessive XStream ClassLoader Creation
Qunar Tech Salon
Qunar Tech Salon
Nov 22, 2016 · Fundamentals

Analyzing GC Slowdown Caused by SystemDictionary Growth in Java Applications Using XStream

The article investigates a Java GC slowdown problem linked to the continuous growth of the JVM's SystemDictionary when repeatedly creating XStream objects, explains how classloader choices affect this behavior, and validates the hypothesis through performance profiling and VM code modifications.

ClassLoaderGCJava
0 likes · 8 min read
Analyzing GC Slowdown Caused by SystemDictionary Growth in Java Applications Using XStream