WebLogic 10.3 与 JDK 1.6_16 - Java 反射中挂起线程
在看似微不足道的 Java 反射操作中,我们的重复 Weblogic 线程挂起超过 600 秒,有时甚至仅挂起 30 秒(这同样糟糕)。
线程转储和 WebLogic 自己的关于卡住线程的内置警报都显示相同的本机代码,但不知道是什么导致它挂起这么长的时间间隔(下面的卡住线程)。
我注意到出现了这条消息,这很奇怪,因为 JDK 本身是 jdk160_16。
这是在启用了本机 I/O 的 Solaris 上进行的,但也许其他一些设置是错误的?
不同的线程有不同的早期代码,但卡住的部分总是相同的:
"[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=3 tid=0x01c2f000 nid=0x74 runnable [0x5bcfc000]
java.lang.Thread.State: RUNNABLE
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
We are having recurring Weblogic threads hanging for 600+ seconds, or sometimes only for 30 seconds (which is just as bad) in seemingly trivial Java Reflection operations.
Thread dumps and WebLogic's own built-in alert on stuck thread all showing same native code, but no idea what could be causing it to hang for such long intervals (stuck thread below).
I noticed that message comes up, which is weird as JDK itself is jdk160_16.
This is on Solaris with Native I/O enabled, but maybe some other setting is wrong?
Various threads have different earlier code, but the stuck section is always the same:
"[STUCK] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=3 tid=0x01c2f000 nid=0x74 runnable [0x5bcfc000]
java.lang.Thread.State: RUNNABLE
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论