有 Java 远程分析器吗? (最好使用JMX)

发布于 2024-08-05 09:23:02 字数 1536 浏览 3 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

小鸟爱天空丶 2024-08-12 09:23:02

如果有问题的机器安装了 X11 客户端库,以及允许 X11 转发的可访问 ssh 服务器,以及在本地机器上运行的 X11 服务器(可能 http://sourceforge.net/projects/xming/)
如果您使用 Sun Java 6u10 或更高版本,则可以通过 ssh(使用 -X 或 -Y)进入 Linux 机器,并在那里运行 jvisualvm,同时在本地计算机上显示其 GUI 界面。

在同一台机器上运行允许 jvisualvm 直接附加到正在运行的 Java 进程,而不用做各种配置巫术。

If the machine in question have the X11 client libraries installed, AND a reachable ssh server which allows X11 forwarding, AND an X11 server running on your local machine (perhaps http://sourceforge.net/projects/xming/)
AND you use a Sun Java 6u10 or later, you can ssh (with either -X or -Y) into the Linux box, and run jvisualvm there while showing its GUI-interface on your local machine.

Running on the same machine allows jvisualvm to attach directly to the running Java process instead of doing all kinds of configuration voodoo.

浮生面具三千个 2024-08-12 09:23:02

NetBeans Java Profiler 支持对远程 JVM 进行分析。可以使用 JMX 将 NetBeans 连接到远程 JVM。

JavaPassion 站点上提供的演示提供了一些有关如何入门的指导。

The NetBeans Java Profiler supports profiling of remote JVMs. One can have NetBeans connect to the remote JVM using JMX.

A presentation available on the JavaPassion site provides a few pointers on how to get started.

笑饮青盏花 2024-08-12 09:23:02

嗯...实际上,VisualVM 有一个优秀的内存分析器 它不仅可以告诉你哪些对象消耗了你的记忆,还可以告诉你它们在哪里(可能是无意中)被引用的。

只需按下“监视器”选项卡上的“堆转储”按钮,您就会大吃一惊!

Um... actually, VisualVM has an excellent memory profiler that can tell you not just which objects eat your memory, but also where they're (perhaps inadvertedly) referenced.

Just press the "Heap dump" button on the Monitor tab and be amazed!

那片花海 2024-08-12 09:23:02

我看了几个,最喜欢 YourKit

它是迄今为止最容易使用的,并且与 JMX 配合得很好。

I looked at several and like YourKit the most.

It was by far the easiest to use and works great with JMX.

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