Resource reloading in struts lead to high CPU (Doc ID 1615412.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Symptoms

When running application using struts 2.3.16 on weblogic server, sometimes, performance is not good and even high cpu occurs. After collecting thread dump, it is found that lots of threads are doing reload´╝îlike:

3XMTHREADINFO      "[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'" J9VMThread:0x000001001547EC00, j9thread_t:0x000001001515C820, java/lang/Thread:0x0700000000C440B8, state:CW, prio=5
3XMJAVALTHREAD            (java/lang/Thread getId:0x52, isDaemon:true)
3XMTHREADINFO1            (native thread ID:0xE902EB, native priority:0x5, native policy:UNKNOWN)
3XMTHREADINFO3           Java callstack:
4XESTACKTRACE                at java/util/zip/ZipFile.getEntry(Native Method)
4XESTACKTRACE                at java/util/zip/ZipFile.getEntry(ZipFile.java:186(Compiled Code))
4XESTACKTRACE                at java/util/jar/JarFile.getEntry(JarFile.java:270(Compiled Code))
4XESTACKTRACE                at java/util/jar/JarFile.getJarEntry(JarFile.java:253(Compiled Code))
4XESTACKTRACE                at sun/misc/URLClassPath$JarLoader.getResource(URLClassPath.java:1005(Compiled Code))
4XESTACKTRACE                at sun/misc/URLClassPath$JarLoader.findResource(URLClassPath.java:983(Compiled Code))
4XESTACKTRACE                at sun/misc/URLClassPath.findResource(URLClassPath.java:266(Compiled Code))
4XESTACKTRACE                at java/net/URLClassLoader$4.run(URLClassLoader.java:763(Compiled Code))
4XESTACKTRACE                at java/security/AccessController.doPrivileged(AccessController.java:298)
4XESTACKTRACE                at java/net/URLClassLoader.findResource(URLClassLoader.java:760(Compiled Code))
4XESTACKTRACE                at java/lang/ClassLoader.getResource(ClassLoader.java:456(Compiled Code))
4XESTACKTRACE                at java/lang/ClassLoader.getResource(ClassLoader.java:451(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/GenericClassLoader.getResourceInternal(GenericClassLoader.java:170(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/GenericClassLoader.getResource(GenericClassLoader.java:184(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/FilteringClassLoader.getResource(FilteringClassLoader.java:171(Compiled Code))
4XESTACKTRACE                at java/lang/ClassLoader.getResource(ClassLoader.java:451(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/GenericClassLoader.getResource(GenericClassLoader.java:189(Compiled Code))
4XESTACKTRACE                at java/lang/ClassLoader.getResource(ClassLoader.java:451(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/GenericClassLoader.getResource(GenericClassLoader.java:189(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/ChangeAwareClassLoader.getSuperResource(ChangeAwareClassLoader.java:147(Compiled Code))
4XESTACKTRACE                at weblogic/utils/classloaders/ChangeAwareClassLoader.getResource(ChangeAwareClassLoader.java:127(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/util/ClassLoaderUtil.getResource(ClassLoaderUtil.java:93(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/util/ClassLoaderUtil.getResource(ClassLoaderUtil.java:108(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/util/FileManager.fileNeedsReloading(FileManager.java:69(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:349(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:235(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:338(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:81(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:123(Compiled Code))
4XESTACKTRACE                at com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:115(Compiled Code))
.......
4XESTACKTRACE                at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:120(Compiled Code))
4XESTACKTRACE                at weblogic/servlet/internal/WebAppServletContext.securedExecute(WebAppServletContext.java:2273(Compiled Code))
4XESTACKTRACE                at weblogic/servlet/internal/WebAppServletContext.execute(WebAppServletContext.java:2179(Compiled Code))
4XESTACKTRACE                at weblogic/servlet/internal/ServletRequestImpl.run(ServletRequestImpl.java:1490(Compiled Code))
4XESTACKTRACE                at weblogic/work/ExecuteThread.execute(ExecuteThread.java:256(Compiled Code))
4XESTACKTRACE                at weblogic/work/ExecuteThread.run(ExecuteThread.java:221)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms