How do I monitor Tomcat6 with JVisualvm in Ubuntu Linux?

萝らか妹 提交于 2019-12-04 09:55:30

If there is no firewall, try to set java.rmi.server.hostname system property for your Tomcat. Add this to your Tomcat's JAVA_OPTS:

-Djava.rmi.server.hostname=<IP address of Ubuntu Server>

You don't need to start rmiregistry and you don't need to run jstatd to be able to monitor your Tomcat remotely.

Ronald Paul

For the record: jstatd does not require X libraries, it only depends on them via some other recommended package. You can make aptitude or apt-get skip installation of recommended packages and have jstatd installed without any X11 libraries.

For aptitude, go into options ➞ preferences ➞ Install recommended packages automatically. For apt-get, see this question on askubuntu.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!