Package com.helix.experiments.metaspace
Class MetaspaceLeakExperiment
java.lang.Object
com.helix.experiments.metaspace.MetaspaceLeakExperiment
Experiment demonstrating Metaspace memory leaks caused by unclosed, retained ClassLoaders vs.
proper ClassLoader closing and GC class unloading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunFixedScenario(int iterations) Runs the fixed scenario where ClassLoaders are closed, unreferenced, and GC is invoked.runLeakScenario(int iterations) Runs the leak scenario where ClassLoader and Class references are retained indefinitely.
-
Constructor Details
-
MetaspaceLeakExperiment
public MetaspaceLeakExperiment()
-
-
Method Details
-
runLeakScenario
Runs the leak scenario where ClassLoader and Class references are retained indefinitely. -
runFixedScenario
Runs the fixed scenario where ClassLoaders are closed, unreferenced, and GC is invoked.
-