public final class JvmAgent extends Object
HttpServer
or
its SSL variant HttpsServer
.
Beside the configuration defined in ConfigKey
, this agent honors the following
additional configuration keys:
/default-jolokia-agent.properties
All configurations will be merged in the following order with the later taking precedence:
/default-jolokia-agent.properties
- Configuration from a config file (if given)
- Options given on the command line in the form
-javaagent:agent.jar=key1=value1,key2=value2...
Modifier and Type | Field and Description |
---|---|
static String |
JOLOKIA_AGENT_URL |
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(String agentArgs,
Instrumentation instrumentation)
Entry point for the agent, using dynamic attach
(this is post VM initialisation attachment, via com.sun.attach)
|
static void |
premain(String agentArgs,
Instrumentation inst)
Entry point for the agent, using command line attach
(that is via -javaagent command line argument)
|
public static final String JOLOKIA_AGENT_URL
public static void premain(String agentArgs, Instrumentation inst)
agentArgs
- arguments as given on the command linepublic static void agentmain(String agentArgs, Instrumentation instrumentation)
agentArgs
- arguments as given on the command lineCopyright © 2019. All rights reserved.