Package org.jolokia.jvmagent
Class JvmAgent
java.lang.Object
org.jolokia.jvmagent.JvmAgent
A JVM level agent using the JDK11+ HTTP Server
HttpServer or
its SSL variant HttpsServer.
Beside the configuration defined in ConfigKey, this agent honors the following
additional configuration keys:
- host : Host address to bind to
- port : Port to listen on
- backlog : max. nr of requests queued up before they get rejected
- config : path to a properties file containing configuration
- ....
/default-jolokia-agent.properties
All configurations will be merged in the following order with the later taking precedence:
- Default properties from
/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...
- Since:
- Mar 3, 2010
- Author:
- roland
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidagentmain(String agentArgs, Instrumentation instrumentation) Entry point for the agent, using dynamic attach.static voidpremain(String agentArgs, Instrumentation inst) Entry point for the agent, using command line attach (that is via -javaagent command line argument)
-
Field Details
-
JOLOKIA_AGENT_URL
- See Also:
-
-
Method Details
-
premain
Entry point for the agent, using command line attach (that is via -javaagent command line argument)- Parameters:
agentArgs- arguments as given on the command line
-
agentmain
Entry point for the agent, using dynamic attach. (this is a post VM initialisation attachment, via com.sun.attach)- Parameters:
agentArgs- arguments as given on the command line
-