Search code examples
javaout-of-memoryjvisualvm

JVisualVM Memory Sampling : Remote applications are not supported


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".

Command line parameters of process:

-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 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.


Solution

  • 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.