问题描述
我正在尝试使用Red Hat Linux中的JVisualVM监视远程tomcat进程。 CPU采样工作正常但内存采样选项卡已禁用。它说内存采样:不可用。不支持远程应用程序。
I am trying to monitor remote tomcat process with JVisualVM in Red Hat Linux. CPU sampling works fine but Memory sampling tab is disabled. It says "Memory sampling: Not available. Remote applications are not supported".
进程的命令行参数:
-Djavac.source=1.5 -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=11107
JVisualVm详情:
JVisualVm details:
Version:
1.6.0_24 (Build 100930); platform 100909-1140d3a55456
System:
Linux (2.6.18-53.1.14.el5) , i386 32bit
Java:
1.6.0_24; Java HotSpot(TM) Client VM (19.1-b02, mixed mode)
我有什么东西吗?失踪。我对这一切都很陌生。
Is there something which I am missing. I am quite new to all this.
推荐答案
内存采样使用,仅适用于在与VisualVM相同的用户下运行的本地应用程序。您可以在远程计算机上运行VisualVM并使用远程X会话在本地计算机上显示输出。
Memory sampling uses Attach API, which only works for local application running under the same user as VisualVM. You can run the VisualVM on the remote machine and use remote X session to display the output on your local machine.
这篇关于JVisualVM内存采样:不支持远程应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!