发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 CQRS 扩展性 并发编程 事件溯源 分布式 SOA

如何分析java Thread DUMP

              
2014-01-13 16:22
赞助商链接

如何分析java Thread dump文件,从而找到问题的根源,以下面信息为例子:

是否为正常的日志信息,因为锁是正常释放的??

"ExecuteThread: '17' for queue: 'JMS.TimerClientPool'" id=139 idx=0x250 tid=321304 prio=5 alive, in native, waiting, daemon
-- Waiting for notification on: weblogic/kernel/ExecuteThread@[author]0x1e2615d0[/author][fat lock]
at jrockit/vm/Threads.waitForNotifySignal(JLjava/lang/Object;)Z(Native Method)
at java/lang/Object.wait(J)V(Native Method)
at java/lang/Object.wait(Object.java:429)
at weblogic/kernel/ExecuteThread.waitForRequest(ExecuteThread.java:154)
^-- Lock released while waiting: weblogic/kernel/ExecuteThread@[author]0x1e2615d0[/author][fat lock]
at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:174)
at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
-- end of trace
下面的又是该如何分析?


从dump日志中可以看到线程是阻塞的状态,等待获取 java/lang/String@[author][author][author]0x12442b88[/author][/author][/author]

但是该锁具体是哪个如何分析?


"ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" id=93 idx=0x198 tid=320415 prio=5 alive, in native, blocked, daemon
-- Blocked trying to get lock: java/lang/String@[author][author][author]0x12442b88[/author][/author][/author][fat lock]
at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method)
at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1630)
at jrockit/vm/Locks.fatLockReacquire(Locks.java:1865)
at jrockit/vm/Locks.lockFat(Locks.java:1736)
at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1277)
at jrockit/vm/Locks.monitorEnter(Locks.java:2389)
at weblogic/socket/PosixSocketMuxer.processSockets(PosixSocketMuxer.java:91)
at weblogic/socket/SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:224)
at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:183)
at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
-- end of trace

Blocked lock chains

===================
Chain 2:
"ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" id=92 idx=0x194 tid=320414 waiting for java/lang/String@[author][author][author]0x12442b88[/author][/author][/author] held by:
"ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" id=93 idx=0x198 tid=320415 in chain 1


Open lock chains
================
Chain 1:
"ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" id=91 idx=0x190 tid=320413 waiting for java/lang/String@[author][author][author]0x12442b88[/author][/author][/author] held by:
"ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" id=93 idx=0x198 tid=320415 (active)

谢谢!

2014-01-13 16:35

参考:
http://stackoverflow.com/questions/1623692/what-is-weblogic-socket-muxer

java      dump      weblogic     

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系反馈 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com