1 Reply Latest reply: Sep 23, 2012 10:06 PM by Kalyan Pasupuleti-Oracle RSS

    Class Loading order/exception in JRockit 31

    949240
      Hi all,
      We recently migrated to Weblogic 10.3.6 and JRockit 31 1.6 (64 bit). I tried to analyze JVM performance using flight recording. I noticed several (around 200K withing 5 minutes!) ClassNotFoundExceptions in the flight recording, but no big issue in the application. This got me curious and I decided to run with Java run-time options verbose:class=trace. This gave more details in the log. I found that for loading every Weblogic class the JRockit first tried 4-5 times and then successfully loaded the class from the Jar file. So for each class I got this exception trace below. I am attaching the example for how the JVM loaded the weblogic.management.scripting.WLST class. My question is:

      1. Is this the expected behavior?
      2. Is there a better way to load classes in JRockit?
      3. Am I just seeing these exceptions because I am setting the Flight recording at a very verbose level?

      Please advise. Thanks in advance.
      - Shankar.

      -----
      +[class  ][Fri Sep 21 23:15:37 2012][00514] initiate 621 weblogic/management/scripting/WLST+
      +[class  ][Fri Sep 21 23:15:37 2012][00514] 621 weblogic/management/scripting/WLST fail (0.00 ms)+
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/lang/ClassNotFoundException: weblogic.management.scripting.WLST+
      at jrockit/vm/Classes.forName(Classes.java:130)
      at java/lang/ClassLoader.findBootstrapClass(Ljava/lang/String;)Ljava/lang/Class;(Native Method)
      at java/lang/ClassLoader.findBootstrapClassOrNull(ClassLoader.java:926)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:297)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/lang/ClassNotFoundException: weblogic.management.scripting.WLST+
      at java/net/URLClassLoader$1.run(URLClassLoader.java:202)
      at jrockit/vm/AccessController.doPrivileged(AccessController.java:254)
      at java/net/URLClassLoader.findClass(URLClassLoader.java:190)
      at sun/misc/Launcher$ExtClassLoader.findClass(Launcher.java:234)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:306)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/security/PrivilegedActionException:+
      at jrockit/vm/AccessController.doPrivileged(AccessController.java:258)
      at java/net/URLClassLoader.findClass(URLClassLoader.java:190)
      at sun/misc/Launcher$ExtClassLoader.findClass(Launcher.java:234)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:306)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/security/PrivilegedActionException:+
      at jrockit/vm/AccessController.doPrivileged(AccessController.java:258)
      at java/net/URLClassLoader.findClass(URLClassLoader.java:190)
      at sun/misc/Launcher$ExtClassLoader.findClass(Launcher.java:234)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:306)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/lang/ClassNotFoundException: weblogic.management.scripting.WLST+
      at java/net/URLClassLoader$1.run(URLClassLoader.java:202)
      at jrockit/vm/AccessController.doPrivileged(AccessController.java:254)
      at java/net/URLClassLoader.findClass(URLClassLoader.java:190)
      at sun/misc/Launcher$ExtClassLoader.findClass(Launcher.java:234)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:306)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[excepti][Fri Sep 21 23:15:37 2012][00514][00004] java/lang/ClassNotFoundException: weblogic.management.scripting.WLST+
      at java/net/URLClassLoader$1.run(URLClassLoader.java:202)
      at jrockit/vm/AccessController.doPrivileged(AccessController.java:254)
      at java/net/URLClassLoader.findClass(URLClassLoader.java:190)
      at sun/misc/Launcher$ExtClassLoader.findClass(Launcher.java:234)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:306)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:295)
      at java/lang/ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic/WLST.main(WLST.java:27)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      --- End of stack trace
      +[load   ][Fri Sep 21 23:15:37 2012][00514] define #556 weblogic/management/scripting/WLST, src=file:/opt/apps/weblogic11g/wlserver_10.3/server/lib/weblogic.jar+