OpenSource

[Tomcat] Library( class loader ) loading 옵션

아르비스 2017. 1. 26. 10:45

Tomcat loading 순서를 변경하는 옵션


Java 실행 옵션에 다름 내용을 추가한다.


-verbose:class  



예제

 export JAVA_OPTS=" -Xms2048m -Xmx2048m -XX:NewSize=896m ...

 ...  -verbose:class"




이렇게 설정 후 재기동한 경우

catalina.out 파일에 다음과 같이 class(library) loading 순서가  표시된다.

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=384m; support was removed in 8.0

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0

[Opened /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Object from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.io.Serializable from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Comparable from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.CharSequence from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.String from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.reflect.AnnotatedElement from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.reflect.GenericDeclaration from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.reflect.Type from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Class from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Cloneable from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.ClassLoader from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.System from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Throwable from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Error from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.ThreadDeath from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.Exception from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.RuntimeException from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.SecurityManager from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.security.ProtectionDomain from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.security.AccessControlContext from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.security.SecureClassLoader from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.ReflectiveOperationException from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.ClassNotFoundException from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

[Loaded java.lang.LinkageError from /usr/java/jdk1.8.0_121/jre/lib/rt.jar]

...