JVM Tool Interface (JVMTI)仕様では、JVMTI エージェントはライブ フェーズ中に VM で起動できると記載されていますが、その方法については言及されていません。誰かがこれを以前に試したことがありますか、それを行う方法について何かヒントを得ましたか?
1 に答える
2
メソッドを使用できます
* @param agent
* Path to the JAR file containing the agent.
*
* @param options
* The options to provide to the agent's <code>agentmain</code>
* method (can be <code>null</code>).
com.sun.tools.attach.VirtualMachine.loadAgent(String agent, String options)
${java.home}/../lib/tools.jar から
于 2010-10-08T08:03:28.387 に答える