Over a million developers have joined DZone.

Quick tip: Enabling remote access to Tomcat JMX

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

If you want to connect JConsole/VisualVM to a remote Tomcat or set up Opsview check_jmx with Tomcat, then you’ll need to enable remote JMX support.

This can be achieved with the following JVM settings in /etc/default/tomcat6 on Debian (line breaks added for clarity):

# Add JMX support

This configuration would typically be locked down with iptables.

For the complete list of settings (e.g. SSL / password controlled access) see the remote section of the JMX guide.


 From http://leanjavaengineering.wordpress.com/2011/06/02/tomcat-remote-jmx-access/

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}