1. Run Commnad : Mulder의 컴퓨터에서는 tomcat이 아래와 같이 같이 실행 됩니다.
$YOUR_JDKHOME/bin/java -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -verbose:gc -Xloggc:../gclogs/tomcat_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -Dcatalina.base=/somepath/org.eclipse.wst.server.core/tmp1 -Dcatalina.home=/somepath/apache-tomcat-7.0.12 -Dwtp.deploy=/somepath/org.eclipse.wst.server.core/tmp1/wtpwebapps -Djava.endorsed.dirs=/somepath/apache-tomcat-7.0.12/endorsed -javaagent:/somepath/spring-instrument/3.0.5.RELEASE/spring-instrument-3.0.5.RELEASE.jar -Dfile.encoding=UTF-8 -classpath /somepath/apache-tomcat-7.0.12/bin/bootstrap.jar:/somepath/apache-tomcat-7.0.12/bin/tomcat-juli.jar org.apache.catalina.startup.Bootstrap start
2. 위 실행 파라미터를 나누어보면 아래와 같습니다.
A. -Dcatalina.base=/somepath/org.eclipse.wst.server.core/tmp1
B. -Dcatalina.home=/somepath/apache-tomcat-7.0.12
C. -Dwtp.deploy=/somepath/org.eclipse.wst.server.core/tmp1/wtpwebapps
D. -Djava.endorsed.dirs=/somepath/endorsed
E. -javaagent:/somepath/spring-instrument/3.0.5.RELEASE/spring-instrument-3.0.5.RELEASE.jar
F. -Dfile.encoding=UTF-8
G. -classpath /somepath/apache-tomcat-7.0.12/bin/bootstrap.jar:/somepath/apache-tomcat-7.0.12/bin/tomcat-juli.jar
H. org.apache.catalina.startup.Bootstrap start
3. 파라미터별 의미는 아래와 같습니다.
A. -Dcatalina.base=tomcat server runtime home dir
B. -Dcatalina.home=tomcat pysical home dir
C. -Dwtp.deploy=delpoy되는 webapp의 위치
D. -Djava.endorsed.dirs=승인된 jar library 의 위치, File.pathSerparator 로 연결하여 복수 지정가능능
E. -javaagent: 클래스의 method interceptor
F. -Dfile.encoding=파일의 기본 인코딩 타입
G. -classpath tomcat 이 기동하기에 필요한 기본 jar library
H. org.apache.catalina.startup.Bootstrap start : tomcat startup command ( Bootstrap)
4. JVM Argument
-Xmx1024m
-XX:MaxPermSize=256m
-verbose:gc
-Xloggc:../gclogs/tomcat_gc.log
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+HeapDumpOnOutOfMemoryError