Class AgentLauncher

java.lang.Object
org.jolokia.jvmagent.client.AgentLauncher

public final class AgentLauncher extends Object
Launcher for attaching/detaching a Jolokia agent dynamically to an already running Java process. This launcher tries hard to detect the required classes from tools.jar dynamically. For Mac OSX these classes are already included, for other they are looked up within JAVA_HOME (pointed to by the system property java.home). Classes from tools.jar are never referenced directly but looked up via reflection.
Since:
28.07.11
Author:
roland, Greg Bowyer
  • Method Details

    • main

      public static void main(String... args)
      Main method for attaching agent to a running JVM program. Use '--help' for a usage explanation.
      Parameters:
      args - command line arguments