Package org.kohsuke.file_leak_detector
Class Main
java.lang.Object
org.kohsuke.file_leak_detector.Main
Entry point for externally attaching agent into another local process.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
run()
protected ClassLoader
wrapIntoClassLoader
(File toolsJar) Figures out how to load tools.jar into a classloader.
-
Field Details
-
pid
-
options
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
run
-
wrapIntoClassLoader
Figures out how to load tools.jar into a classloader. The attachment API relies on JNI, so if we have other processes in the JVM that tries to use the attach API (like JavaMelody), it'll cause a failure. So we try to load tools.jar into the application classloadr so that later attempts to load tools.jar will see it.- Throws:
MalformedURLException
-