本文介绍了在运行时卸载JVMTI代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用attach API在运行时加载JVMTI代理。我想在我的程序完成时卸载JVMTI代理而不终止代理加载的JVM。根据无法通过attach API执行此操作。是否还有其他方法可以强制代理通过Java API或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?
推荐答案
JVMTI 卸载(没有JVM)终止)是可能的,但是与平台有关并且超出了规范的范围。
JVMTI spec says unloading (without JVM termination) is possible, but platform-dependent and out of specification's scope.
这篇关于在运行时卸载JVMTI代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!