Skip to content

Instantly share code, notes, and snippets.

@egustafson
Last active December 16, 2015 00:19
Show Gist options
  • Save egustafson/5346751 to your computer and use it in GitHub Desktop.
Save egustafson/5346751 to your computer and use it in GitHub Desktop.
## -- Local environment variables for Tomcat --
##
CATALINA_OPTS=" \
-Dcom.sun.management.jmxremote=true \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Djava.rmi.server.hostname=15.185.101.251 \
"
# -Djava.rmi.server.hostname=15.185.99.255 \
# -Dcom.sun.management.jmxremote.port=9012 \
export CATALINA_OPTS
## Static ports for JMX
# see: http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html
#
# place catalina-jmx-remote.jar into $CATALINA_HOME/lib
# dl: http://mirror.olnevhost.net/pub/apache/tomcat/tomcat-7/v7.0.39/bin/extras/catalina-jmx-remote.jar
#
# Add the following to the $CATALINA_BASE/conf/server.xml :
# <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
# rmiRegistryPortPlatform="9012"
# rmiServerPortPlatform="9013" />
#
# URL: service:jmx:rmi://<hostname>:9013/jndi/rmi://<hostname>:9012/jmxrmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment