jsadebugd/jdb 并运行清晰的 JVM

发布于 2024-12-12 18:53:13 字数 141 浏览 3 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灼疼热情 2024-12-19 18:53:14

显着降低性能,但是只有在附加调试器的情况下,并且只有在编译为允许调试(可选)时才可能实现。

Notably slows performance, however only if debugger is attached and that is only possible if compiled to allow debugging (optional).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文