SPR-4876 [Performance] CachedIntrospectionResults initialization slow down weblogic. [SPR-7838] #12494
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: task
A general task
David.Turing opened SPR-7838 and commented
I have a key customer that widely use Spring(they do some repackage by themself).
Spring version is : 1.2.x
JDK version is : 1.4.2_15, and now, they are suffering from issue describe in #9552.
From the threaddump, we see lots of thread are stucked as below:
"ExecuteThread: '7' for queue: 'weblogic.kernel.Default'" id=16 idx=0x54 tid=24953 prio=5 alive, in native, blocked, daemon
at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method)
at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1630)
at jrockit/vm/Locks.lockFat(Locks.java:1731)
at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1277)
at jrockit/vm/Locks.monitorEnter(Locks.java:2389)
at java/beans/Introspector.findExplicitBeanInfo(Introspector.java:404)
at java/beans/Introspector.<init>(Introspector.java:355)
at java/beans/Introspector.getBeanInfo(Introspector.java:157)
at org/springframework/beans/CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:137)
at org/springframework/beans/CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:78)
at org/springframework/beans/BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:190)
at org/springframework/beans/BeanWrapperImpl.<init>(BeanWrapperImpl.java:168)
.....
And we see another thread block them as below(note that unlocked means a Biased Lock Strategy:
"ExecuteThread: '12' for queue: 'weblogic.kernel.Default'" id=21 idx=0x68 tid=24958 prio=5 alive, in native, blocked, daemon
at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method)
at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1630)
at jrockit/vm/Locks.lockFat(Locks.java:1731)
at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1277)
at jrockit/vm/Locks.monitorEnter(Locks.java:2389)
at sun/misc/Launcher$AppClassLoader.loadClass(Launcher.java:260)
at java/lang/ClassLoader.loadClass(ClassLoader.java:282)
^-- Holding lock: weblogic/utils/classloaders/GenericClassLoader@0x23314a58[thin lock]
at java/lang/ClassLoader.loadClass(ClassLoader.java:282)
^-- Holding lock: weblogic/utils/classloaders/GenericClassLoader@0x2edfabb0[thin lock]
at java/lang/ClassLoader.loadClass(ClassLoader.java:282)
^-- Holding lock: weblogic/utils/classloaders/GenericClassLoader@0x2e4e1428[thin lock]
at java/lang/ClassLoader.loadClass(ClassLoader.java:235)
at weblogic/utils/classloaders/GenericClassLoader.loadClass(GenericClassLoader.java:224)
at java/beans/Introspector.instantiate(Introspector.java:1455)
at java/beans/Introspector.findExplicitBeanInfo(Introspector.java:406)
^-- Holding lock: java/lang/Class@0x2e494da0[fat lock]
at java/beans/Introspector.<init>(Introspector.java:355)
at java/beans/Introspector.getBeanInfo(Introspector.java:157)
at org/springframework/beans/CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:137)
at org/springframework/beans/CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:78)
at org/springframework/beans/BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:190)
at org/springframework/beans/BeanWrapperImpl.<init>(BeanWrapperImpl.java:168)
Yes, we guess we are hit the #9552. CachedIntrospectionResults initialization make weblogic server slow down and sometimes crash, depend on how much threads are running into ClassLoader.loadClass.
Most often, we had to throttle the threads number that running into this case.
We hope that juergen could provide a fix for the customer, both on Spring 1.2.9 and Spring 2.5.5, in addtion to the Spring 3.0, because the latter is not yet certified on WebLogic 11g container.(I will ask michael.chen for advice, later).
Thanks and Regards
David.Turing
Oracle Fusion Middleware Department
Advance Customer Support
Affects: 1.2 final, 2.5.4
This issue is a sub-task of #9552
The text was updated successfully, but these errors were encountered: