You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by honyk <j....@email.cz> on 2013/07/23 18:07:49 UTC

JMX monitoring of tomcat service

Dear All,

I run tomcat as service on Windows Server 2008 R2. I am not able to monitor
it locally yet (discussed in another thread) so in the meantime I am trying
to establish JMX connection to it acc. to this guide:
http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html

All params are changed using tomcat7w.exe (in the Java options text field)
and then the service is restarted.

I am experiencing several weird issues:
1) Basic settings (single line):
-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=9090 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false

Firewal is deactivated, but I cannot access tomcat via VisualVM JMX
('remotely', but from the same PC) using the localhost:9090 path (could not
find the server). The same result for 127.0.0.1 or exact local IP address.

...seting the first otpion to true...
-Dcom.sun.management.jmxremote=true ... same result
... one extra option....
-Djava.rmi.server.hostname=<MY_IP_ADDRESS> ...same result

2) Using listener
http://www.liferay.com/web/thiago.moreira/blog/-/blogs/how-to-monitor-lifera
y-tomcat-remotely-through-firewalls-using-visualvm

I downloaded extra jar file, placed it to /lib folder and edited server.xml
file.

a) From that moment on credentials were required regardless authentication
has been set to true or false.

b) When credentials files were specified, there were still 'FileNotFound'
errors in the log (even when absolute paths were used):
-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=9090 
-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password 
-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access 
-Dcom.sun.management.jmxremote.ssl=false

Any way, after many attempts I haven't found any solution how to monitor my
Tomcat instance yet :-(

Am I missing something?

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org