简体   繁体   English

VisualVM连接到远程主机时出现问题

[英]Problem with VisualVM-when connecting to remote host

I am new to Java Development and using the VisualVm for the first time. 我是Java Development的新手并且是第一次使用VisualVm。 I am facing some problem in Connecting a Remote Host from the VisualVm interface. 我在VisualVm界面连接远程主机时遇到了一些问题。

I have JDK 1.6 running in the remote host and also started jstatd server on the same. 我在远程主机上运行了JDK 1.6,同时启动了jstatd服务器。 When I am connecting the remote host from VisualVm interface running in local machine, its getting connected but the Profiler tab and Threads tab are missing from the interface. 当我从本地机器上运行的VisualVm接口连接远程主机时,它已连接但接口中缺少“Profiler”选项卡和“线程”选项卡。 What can likely be the problem. 可能是什么问题。

My OS is SUSE Linux. 我的操作系统是SUSE Linux。

Thanks, 谢谢,

The profiler tab is only available for local JVM's. Profiler选项卡仅适用于本地JVM。

I'm not sure why the thread tab isn't displayed. 我不确定为什么没有显示线程选项卡。 It does for me. 它对我有用。

I've read that Netbeans has remote profiling support. 我读过Netbeans有远程分析支持。 But I've never personally used it. 但我从来没有亲自使用它。

I had the same issue trying to monitor Jboss 4.0.2, since that version has its own mbean server , is this your case ? 我有同样的问题试图监控Jboss 4.0.2,因为该版本有自己的mbean服务器,这是你的情况吗? Anyway, make sure you are using jdk 1.6.0u7 or later, otherwise you have to turn-off class sharing in order for visualvm to work (-Xshare:off) 无论如何,请确保您使用的是jdk 1.6.0u7或更高版本,否则您必须关闭类共享才能使visualvm正常工作(-Xshare:off)

I hope this helps, maybe you can give more details on the nature of application your trying to profile/JVM you are using 我希望这会有所帮助,也许您可​​以提供有关您尝试配置文件/ JVM的应用程序性质的更多详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM