The following configuration is edited in $CATALINA_HOME/bin/setenv.sh

Configure JVM

export JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx1024M";
export JAVA_OPTS="$JAVA_OPTS -XX:NewSize=512m -XX:MaxNewSize=512m";
export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=256m -XX:MaxPermSize=256m";
export JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC";
export JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled";
export JAVA_OPTS="$JAVA_OPTS -XX:+DisableExplicitGC";
export JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true";

Enable JMX

export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote";
export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote.port=9090";
export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false";
export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false";

Enable Debug

export CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005";
Advertisements