Search code examples
javajvmjavaagents

Can a JVM retrieve a list of agents that have been loaded into it via the attach api?


Is it possible to get a list of agents loaded into the current JVM by the Java 1.6 attach api? If so how?

Agents loaded at launch can be determined via RuntimeMXBean but I can't see a way to get a handle on ones added after launch.


Solution

  • No, I don't think there is a portable way to find out about the agents. What are you trying to accomplish? Maybe there is another approach...