Java Attach API can attach to local VMs and load agents to it. How can I attach to VM on another computer to load agent ?
I know about JMX. But I didn’t find out how load my custom agent to remote VM.
Maybe there are exist another ways to solve my problem (to load and execute custom code (agent) to remote VM) ?
upd. I want to execute custom code on remote JVM. Independence of initial JVM parameters is plus.
Thanks.
I found experimental solution: jsadebugd.
Then you can attach to it by sun.jvm.hotspot.jdi.SAPIDAttachingConnector connector.