VisualVM 挂在启动“计算描述”上
我有两台远程服务器,都运行最新的 CentOS,都运行最新的 Tomcat6、最新的 JDK6 和 VisualVM 1.3.2。
ssh -X 转发在一台服务器上工作 - 我可以从该机器启动 VisualVM,它端口转发并运行良好 - 我看到该远程机器上运行的所有 JVM 进程在 VVM 中都是“本地”。
在第二台机器上进行 ssh -X 转发 - 然后运行 VisualVM - 打开一个带有 VVM 的 X windows,但它只显示一个“本地”进程 - VisualVM 本身 - 右下角有一个弹跳进度条,上面写着“计算描述”,而且永无止境。
我在任何地方都找不到任何关于此的信息 - 有人遇到过这个吗?我该如何克服这个问题?
I've got two remote servers, both running recent CentOS, both running recent Tomcat6, recent JDK6, and VisualVM 1.3.2.
ssh -X forwarding works on one server - I can start up VisualVM from that machine, it port forwards and runs fine - I see all the JVM processes running on that remote machine as 'local' in VVM.
ssh -X forwarding on the second machine - then running VisualVM - brings up an X windows with VVM in it, but it just shows one 'local' process - the VisualVM itself - and the lower right corner has a bouncing progress bar that says "computing description", and it never ends.
I can't find anything about this anywhere - anyone ever hit this? How do I get past this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我面临着同样的问题 - 然后我遇到了这篇文章 https://github.com/oracle /visualvm/issues/82。然后我杀死了我机器上的所有 JVM/JDK 会话。重新启动了视觉虚拟机 - 等了一下,就这样,它不再挂起了。
简而言之,当您在 IP 之间切换时,视觉虚拟机会挂起。
I was facing the same issue - then I came across this post https://github.com/oracle/visualvm/issues/82. Then I killed all the JVM/JDK sessions on my machine. Restarted the visual vm - waited a bit and there you go, its not hanging anymore.
In short visual vm hangs when you switch between IP's.
我遇到了类似的问题 - VisualVM 挂在“计算描述”上,不显示除自身之外的任何本地 JVM。我使用“jps”来查找系统上运行的所有 JVM。使用 jstack 获取所有这些 JVM 的堆栈,包括 JVisualVM 本身。我发现正在发生的情况是,JVisualVM 正在尝试创建到目标 VM 之一的 RMI 连接,并且该 VM 挂在 RMI 连接尝试上。就我而言,它挂起的原因是我将 JVisualVM 分析器附加到该 JVM,但 JVisualVM 随后因 PermGen OOM 而终止。探查器的部分内容仍在目标 JVM 中运行,但由于缺少探查器前端而挂起;因此,任何类加载尝试都将挂起,这将导致来自新 JVisualVM 实例的传入 RMI 也挂起。重新启动受影响的 JVM 解决了该问题。
如果没有任何线程转储,我无法判断您的问题是否与我的一样;但如果有人再次遇到这个问题,收集线程转储是一个好主意。无论根本原因是什么,重新启动机器上的所有 JVM(例如重新启动)都有可能解决问题。
I experienced a similar issue - VisualVM hanging on "computing description", not displaying any local JVMs other than itself. I used "jps" to find all the JVMs running on the system. Used jstack to get the stacks of all those JVMs, including JVisualVM itself. What I found was happening, was that JVisualVM was trying to create an RMI connection to one of the target VMs, and that VM was hanging on the RMI connection attempt. In my case, the reason why it hanged was that I had the JVisualVM profiler attached to that JVM, but JVisualVM then died with a PermGen OOM. Parts of the profiler were still running in the target JVM, but were hanging due to lack of the profiler frontend; thus any attempt at class loading would hang, which would cause the incoming RMI from the new JVisualVM instance to hang also. Restarting the affected JVM resolved the issue.
Without any thread dumps, I can't say whether your issue was anything like mine or not; but if anyone gets this problem again, collecting thread dumps is a good idea. Whatever the root cause is, restarting all JVMs on your box (e.g. reboot) has a reasonable chance of solving it.
如果您的 JVM 在调试断点处暂停,那么这将导致 VisualVM 挂起。
If your JVM is paused on a debugging breakpoint then this will cause VisualVM to hang.
我将 VisualVM 与 IntelliJ 结合使用。对我来说,VisualVM 挂起是因为我使用的是 VPN 连接。我关闭 VPN 后问题就解决了。
I was using VisualVM in combination with IntelliJ. For me, VisualVM hanged because I was on a VPN connection. The issue resolved after I turned-off VPN.