create/modify setenv.sh and add the following entries
JAVA_HOME=/usr/java/default CATALINA_OPTS="-Dcom.sun.management.jmxremote\ -Dcom.sun.management.jmxremote.port=13091\ -Dcom.sun.management.jmxremote.ssl=false\ -Dcom.sun.management.jmxremote.authenticate=false\ -Djava.rmi.server.hostname=localhost\ -javaagent:/intellijsharedlibs/groovyhotswap/gragent.jar -Xdebug -Xrunjdwp:transport=dt_socket,address=54391,suspend=n,server=y" JPDA_OPTS="-Xrunjdwp:jdwp=transport=dt_socket,address=54391,server=y,suspend=n" JAVA_OPTS="$JAVA_OPTS \ -XX:+CMSClassUnloadingEnabled \ -XX:+UseConcMarkSweepGC \ -XX:MaxPermSize=1024m \ -XX:PermSize=512m \ -Djavax.net.ssl.trustStore=$pathtokeystore \ -Djavax.net.ssl.trustStorePassword=changeit"