tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neven Cvetkovic <>
Subject Re: tomcat jmx disabled by default ?
Date Sun, 07 Apr 2013 13:49:26 GMT

"You don't have to" configure Tomcat with above settings to get JMX. You
are correct that JMX works out of the box. However, that works only
locally, above commands are for REMOTE JMX access. You are opening up a jmx
port so external (not same machine) jconsole or jvirtualvm can access JMX
MBean server your Tomcat is running. Thus, if you want to connect to remote
Tomcat instance, "you have to provide" JMX connection details, and that's
what we often do.

The above settings are best configured in CATALINA_HOME/bin/setenv.bat or script that you need to create. Even though this script doesn't
exist by default, startup script calls it if it is created by user. All
your customizations should be contained there.

Hope that helps. Cheers!
On Apr 7, 2013 5:59 AM, "Jakub 1983" <> wrote:

> why do I have to enable jmx with command
> *set \
> \
> \
> even when I run it *under java 6* ?
> in java 6 jmx is active by default (it is active when I run my own main),
> I cannot see how it is disabled by default by tomcat start scripts,
> but when I run default startup, I cannot connect with jconsole,
> when I set CATALINA_OPTS as above, it works fine,
> but why doesn't it work without it ?
> regards
> Jakub

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message