JVisualVM Memory Sampling : Remote applications are not supported

RandomQuestion picture RandomQuestion · Sep 14, 2011 · Viewed 17.7k times · Source

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.

Answer

Morteza Shahriari Nia picture Morteza Shahriari Nia · May 2, 2013

You can resolved this error by

$ ssh -Y user@remotemachine

$ wget http://java.net/projects/visualvm/downloads/download/release135/visualvm_135.zip

$ unzip visualvm_135.zip

$ cd visualvm_135/bin

$ ./visualvm

This instance of visualvm will be full featured, including memory and CPU sampling.

Read more about it here: http://shahriarinia.blogspot.com/2013/05/java-cpumemory-heap-usage-monitoring.html

http://mshahriarinia.com/