* 자바에서 기본적으로 설정되어있는 메모리 사이즈를 늘려줌
$ cp strartup.sh start.sh
$ vi startup.sh
# 사용하는 메모리사이즈를 조절함. tomcat 버젼이 5.x이상인경우에만 사용
# tomcat버젼에 4.x이하인경우에는 TOMCAT_OPTS 환경변수를 사용함.
export CATALINA_OPTS="-Xms256m -Xmx512m"
umask 0
/usr/local/tomcat/bin/start.sh
$ startup.sh
* 참고
$ java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.
The -X options are non-standard and subject to change without notice.
댓글 없음:
댓글 쓰기