jmxcatalinamaven-tomcat-plugin

Enable jmx on tomcat7-maven-plugin


I'm want to enable JMX on tomcat7-maven-plugin. How do I pass in CATALINA_OPTS to plugin configuration?


Solution

  • Added below line to my .profile

       export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9000 -Xmx1024m -XX:MaxPermSize=256m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"