Created
May 1, 2012 11:47
-
-
Save wataru420/2567543 to your computer and use it in GitHub Desktop.
Tomcat7起動オプション
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CATALINA_OPTS (Optional) Java runtime options used when the "start", | |
# "run" or "debug" command is executed. | |
# Include here and not in JAVA_OPTS all options, that should | |
# only be used by Tomcat itself, not by the stop process, | |
# the version command etc. | |
# Examples are heap size, GC logging, JMX ports etc. | |
. | |
. | |
. | |
# JAVA_OPTS (Optional) Java runtime options used when any command | |
# is executed. | |
# Include here and not in CATALINA_OPTS all options, that | |
# should be used by Tomcat and also by the stop process, | |
# the version command etc. | |
# Most options should go into CATALINA_OPTS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
umask 002 | |
DATE=`date +'%Y%m%d-%H%M'` | |
JAVA_HOME=/usr/local/java | |
export JAVA_HOME | |
CATALINA_OPTS="-server -XX:MaxPermSize=256m -XX:PermSize=256m -XX:SurvivorRatio=2 -Xmn1024m -Xmx2048m -Xms2048m" | |
CATALINA_OPTS="${CATALINA_OPTS} -XX:+PrintGCDetails -Xloggc:${CATALINA_BASE}/logs/gc.log.${DATE}" | |
CATALINA_OPTS="${CATALINA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3333 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true" | |
CATALINA_OPTS="${CATALINA_OPTS} -Dcom.sun.management.jmxremote.password.file=${CATALINA_BASE}/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=${CATALINA_BASE}/conf/jmxremote.access" | |
export CATALINA_OPTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment