JMX agents and Jigsaw

Alan Bateman Alan.Bateman at oracle.com
Mon Jul 20 11:18:51 UTC 2015



On 20/07/2015 11:51, Ron Pressler wrote:
> Hi.
> I need to start a local JMX agent on the current JVM and obtain its secret
> address; I cannot rely on tools.jar being present so I can't use the attach
> mechanism.
The attach API (meaning com.sun.tools.attach) is a 
JDK-specific/supported API. It should continue to work as it does now in 
JDK 9. Even better, there is a new method named 
startLocalManagementAgent that starts a local JMX agent and returns the 
connector service address. This avoids the hack that was loading 
managenent-agent.jar in past releases.

-Alan


More information about the jigsaw-dev mailing list