T- the type of resource the detector tracks
public class AlluxioResourceLeakDetector<T> extends io.netty.util.ResourceLeakDetector<T>
ResourceLeakDetectorwith custom error messages for use in the Alluxio codebase.
|Constructor and Description|
Creates a new instance of the leak detector with the specific resource type and sampling interval.
|Modifier and Type||Method and Description|
A traced leak report which includes records of the recent accesses of the particular object and the stacktrace of where the particular object was created.
An untraced leak report where there is no information about recent object accesses nor where the stacktrace of where the object was created.
addExclusions, getLevel, isEnabled, open, reportInstancesLeak, setEnabled, setLevel, track
public AlluxioResourceLeakDetector(Class<?> resourceType, int samplingInterval, boolean exitOnLeak)
resourceType- the resource class
samplingInterval- on average, how often a resource should be tracked
exitOnLeak- whether to exit the JVM when a leak is detected
resourceType- the class of the resource that was leaked
records- the stacktrace of where the leaked resource was created
protected void reportUntracedLeak(String resourceType)
resourceType- the class name of the resource which was leaked
Copyright © 2023. All Rights Reserved.