小程序挂起
我发现以下帖子 Java 6 JVM Hang 出现了一些类似的异常。不存在僵局。但很多线程都处于WAIT状态。堆栈跟踪如下。我的客户端 JRE 是 1.6.0_18。
"Applet 1 LiveConnect Worker Thread" prio=4 tid=0x03382800 nid=0xe40 in Object.wait() [0x03acf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f2b400> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
- locked <0x27f2b400> (a java.lang.Object)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Browser Side Object Cleanup Thread" prio=6 tid=0x03369800 nid=0x13b0 in Object.wait() [0x03a7f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f2b488> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
- locked <0x27f2b488> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$BrowserSideObjectCleanupThread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Threaded tile loader thread #0" prio=4 tid=0x03437000 nid=0x3f8 in Object.wait() [0x04a6f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x284c4d10> (a ilog.views.tiling.IlvThreadedTileLoader)
at java.lang.Object.wait(Object.java:485)
at ilog.views.tiling.IlvThreadedTileLoader$TaskThread.run(Unknown Source)
- locked <0x284c4d10> (a ilog.views.tiling.IlvThreadedTileLoader)
Locked ownable synchronizers:
- None
"Threaded tile loader thread #0" prio=4 tid=0x04398400 nid=0x163c in Object.wait() [0x04a1f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x28489400> (a ilog.views.tiling.IlvThreadedTileLoader)
at java.lang.Object.wait(Object.java:485)
at ilog.views.tiling.IlvThreadedTileLoader$TaskThread.run(Unknown Source)
- locked <0x28489400> (a ilog.views.tiling.IlvThreadedTileLoader)
Locked ownable synchronizers:
- None
"AWT-EventQueue-1" prio=6 tid=0x03d14400 nid=0x154c in Object.wait() [0x0416f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f30210> (a java.awt.EventQueue)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.getNextEvent(Unknown Source)
- locked <0x27f30210> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Locked ownable synchronizers:
- None
I found following post Java 6 JVM Hang with somewhat similar exception that am getting. There is no deadlock. But many threads are in WAIT state. Stack trace is as follows. My Client JRE is 1.6.0_18.
"Applet 1 LiveConnect Worker Thread" prio=4 tid=0x03382800 nid=0xe40 in Object.wait() [0x03acf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f2b400> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
- locked <0x27f2b400> (a java.lang.Object)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Browser Side Object Cleanup Thread" prio=6 tid=0x03369800 nid=0x13b0 in Object.wait() [0x03a7f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f2b488> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
- locked <0x27f2b488> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$BrowserSideObjectCleanupThread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Threaded tile loader thread #0" prio=4 tid=0x03437000 nid=0x3f8 in Object.wait() [0x04a6f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x284c4d10> (a ilog.views.tiling.IlvThreadedTileLoader)
at java.lang.Object.wait(Object.java:485)
at ilog.views.tiling.IlvThreadedTileLoader$TaskThread.run(Unknown Source)
- locked <0x284c4d10> (a ilog.views.tiling.IlvThreadedTileLoader)
Locked ownable synchronizers:
- None
"Threaded tile loader thread #0" prio=4 tid=0x04398400 nid=0x163c in Object.wait() [0x04a1f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x28489400> (a ilog.views.tiling.IlvThreadedTileLoader)
at java.lang.Object.wait(Object.java:485)
at ilog.views.tiling.IlvThreadedTileLoader$TaskThread.run(Unknown Source)
- locked <0x28489400> (a ilog.views.tiling.IlvThreadedTileLoader)
Locked ownable synchronizers:
- None
"AWT-EventQueue-1" prio=6 tid=0x03d14400 nid=0x154c in Object.wait() [0x0416f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x27f30210> (a java.awt.EventQueue)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.getNextEvent(Unknown Source)
- locked <0x27f30210> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Locked ownable synchronizers:
- None
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有线程在等待
ilog.views.tiling.IlvThreadedTileLoader
实例,因此应该有一些其他线程在执行notify
。在没有看到代码的情况下很难说更多。You have threads waiting on instances of
ilog.views.tiling.IlvThreadedTileLoader
, so there should be some other threads doingnotify
. Hard to say more without seeing code.