禁用JVM热插拔 [英] Disable JVM Hot Swap
问题描述
我们现在必须遵循以下问题:调试时,Eclipse正在使用编译的代码代码使用热插拔,因为它检测到它被更改。
在Eclipse中,我没有找到任何方法来禁用该功能:在热代码替换设置部分我只看到启用/禁用警告的方法。
如已经回覆我们可以禁用自动构建,但是我想询问是否有方法(一个选项)告诉JVM禁用热插拔功能?
我们可以启动禁用选项的JVM,我们不应该关心Eclipse或任何其他IDE /调试器交换代码。
我已经看了一下,看了一下你的问题,就我在虚拟机层面的热点来说,没有办法禁用这个功能。
它看起来像JVMTI(JVM工具界面)中的hotswap代码,如果我正在读取代码,只有在嵌入JVM时才能真正被控制。
看起来它不可能没有补丁JVM
We are instrumenting byte code and we use Eclipse for software development.
We now have to following problem: when debugging, Eclipse is replacing our instrumented code with the compiled code using hot swap since it detects that it was changed.
In Eclipse I did not find any way to disable the feature: in the Hot Code Replace settings section I only see ways to enable/disable warnings.
As already answered we can disable auto build but I wanted to ask if there is a way (an option) to tell the JVM to disable the hot swap feature?
We could just start the JVM with the option disabled and we should not care about Eclipse or any other IDE/debugger swapping the code.
I have looked and thought and looked again at your problem, as far as I can tell in hotspot at the VM level there is no easy way to disable this feature.
It looks like the hotswap code is deep within the JVMTI (JVM tool interface), and if I read the code right can only really be controlled if you are embedding the JVM.
It just looks like its not going to be possible without patch the JVM
这篇关于禁用JVM热插拔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!