Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unloading a JVMTI agent at runtime?

Tags:

java

jvmti

I'm using the attach API to load a JVMTI agent at runtime. I'd like to unload the JVMTI agent when my program is done without terminating the JVM the agent is loaded in. According to this documentation there is no way to do this from the attach API. Are there any other ways to force an agent to unload its self either through a Java API or from within the JVMTI agent?

like image 715
Jared Avatar asked May 25 '11 13:05

Jared


1 Answers

JVMTI spec says unloading (without JVM termination) is possible, but platform-dependent and out of specification's scope.

like image 194
Earwin Avatar answered Sep 29 '22 13:09

Earwin