tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From C├ędric Couralet <cedric.coura...@gmail.com>
Subject Re: JMX monitoring of tomcat service
Date Tue, 23 Jul 2013 18:28:41 GMT
2013/7/23 honyk <j.tosovsky@email.cz>:
> 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

If these properties are on the same line in the java options tab, it
won't work they need to be on different lines.

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

When launching tomcat as a service, without changing the default
configuration, it will start in the system32 folder (or something else
on Win 2008) and not in the tomcat folder. So the path for password
file and acces file should be absolute

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


Mime
View raw message