jsadebugd/jdb 并运行清晰的 JVM
使用 jsadebugd 或 jdb 可以调试已经运行的 JVM,无需任何参数即可启动。我不明白怎么可能,因为我认为,JVM 通过 JIT 将字节码编译为本机代码,并且无法调试。
有人能给我解释一下吗?
这种时不时的调试对性能有何影响?
Using jsadebugd or jdb it's possible to debug already running JVMs, started without any arguments. I don't understand how it's possible, because I thought, that JVM compiles bytecode in native code by JIT, and it cannot be debuged.
Can anybody explain me ?
And how such time-to-time debug affects on performance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显着降低性能,但是只有在附加调试器的情况下,并且只有在编译为允许调试(可选)时才可能实现。
Notably slows performance, however only if debugger is attached and that is only possible if compiled to allow debugging (optional).