configure tomcat
Create the setenv.sh file under apache-tomcat-7.0.52/bin and add the following content. Note that the script below is one line.
JAVA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.net.preferIPv4Stack=true
-Djava.rmi.server.hostname=192.168.56.100"
Description: -Djava.rmi.server.hostname configures the IP address of the machine where tomcat is located.
Connect using VisualVM
connect using jconsole