Habilitar Acceso Jmx

In order to connect through jmx tools, in a first step, add the following options to startup args of your java procceses:

-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.
management.jmxremote.authenticate=false

In order to secure a bit more the app, include also:

-Dcom.sun.management.jmxremote.authenticate=true \
    -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \
    -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access \

Create a access file:

vi $CATALINA_BASE/conf/jmxremote.access :
monitorRole readonly
controlRole readwrite

edit the password file $CATALINA_BASE/conf/jmxremote.password :

monitorRole tomcat
controlRole tomcat

TOMCAT APPENDIX:

edit your $CATALINA_HOME/bin/catalina.sh
and uncomment and edit CATALINAOPTS:

CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jm
xremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

Second step is adding more security to your connection TODO