C:\>jps -l -m
8768 org.jboss.Main
10164 sun.tools.jps.Jps -l -m
8752 sun.tools.jconsole.JConsole
784
8852 thread.Deadlock
C:\>jstack 8852
2015-10-30 14:03:15
Full thread dump Java HotSpot(TM) Client VM (24.45-b08 mixed mode, sharing):
"DestroyJavaVM" prio=6 tid=0x00dbc000 nid=0x24fc waiting on condition [0x0000000
0]
java.lang.Thread.State: RUNNABLE
"Thread-1" prio=6 tid=0x00d67c00 nid=0x52c waiting for monitor entry [0x048ff000
]
java.lang.Thread.State: BLOCKED (on object monitor)
at thread.YourThread.run(Deadlock.java:79)
- waiting to lock <0x247330f0> (a java.lang.String)
- locked <0x24733128> (a java.lang.String)
"Thread-0" prio=6 tid=0x00d67800 nid=0x7ec waiting for monitor entry [0x0486f000
]
java.lang.Thread.State: BLOCKED (on object monitor)
at thread.MyThread.run(Deadlock.java:44)
- waiting to lock <0x24733128> (a java.lang.String)
- locked <0x247330f0> (a java.lang.String)
"Service Thread" daemon prio=6 tid=0x00d42400 nid=0x2238 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
"C1 CompilerThread0" daemon prio=10 tid=0x00d36000 nid=0x20cc waiting on conditi
on [0x00000000]
java.lang.Thread.State: RUNNABLE
"Attach Listener" daemon prio=10 tid=0x00d35000 nid=0x2408 waiting on condition
[0x00000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" daemon prio=10 tid=0x00d33800 nid=0x1fc8 runnable [0x0000000
0]
java.lang.Thread.State: RUNNABLE
"Finalizer" daemon prio=8 tid=0x00cc0400 nid=0x2544 in Object.wait() [0x0450f000
]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x246f0fb8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x246f0fb8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)
"Reference Handler" daemon prio=10 tid=0x00cbec00 nid=0x24b4 in Object.wait() [0
x0447f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x246f0da0> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x246f0da0> (a java.lang.ref.Reference$Lock)
"VM Thread" prio=10 tid=0x00cbd800 nid=0x1b44 runnable
"VM Periodic Task Thread" prio=10 tid=0x00d4e800 nid=0x1f20 waiting on condition
JNI global references: 111
Found one Java-level deadlock:
=============================
"Thread-1":
waiting to lock monitor 0x00d713d4 (object 0x247330f0, a java.lang.String),
which is held by "Thread-0"
"Thread-0":
waiting to lock monitor 0x00cc8c0c (object 0x24733128, a java.lang.String),
which is held by "Thread-1"
Java stack information for the threads listed above:
===================================================
"Thread-1":
at thread.YourThread.run(Deadlock.java:79)
- waiting to lock <0x247330f0> (a java.lang.String)
- locked <0x24733128> (a java.lang.String)
"Thread-0":
at thread.MyThread.run(Deadlock.java:44)
- waiting to lock <0x24733128> (a java.lang.String)
- locked <0x247330f0> (a java.lang.String)
Found 1 deadlock.
8768 org.jboss.Main
10164 sun.tools.jps.Jps -l -m
8752 sun.tools.jconsole.JConsole
784
8852 thread.Deadlock
C:\>jstack 8852
2015-10-30 14:03:15
Full thread dump Java HotSpot(TM) Client VM (24.45-b08 mixed mode, sharing):
"DestroyJavaVM" prio=6 tid=0x00dbc000 nid=0x24fc waiting on condition [0x0000000
0]
java.lang.Thread.State: RUNNABLE
"Thread-1" prio=6 tid=0x00d67c00 nid=0x52c waiting for monitor entry [0x048ff000
]
java.lang.Thread.State: BLOCKED (on object monitor)
at thread.YourThread.run(Deadlock.java:79)
- waiting to lock <0x247330f0> (a java.lang.String)
- locked <0x24733128> (a java.lang.String)
"Thread-0" prio=6 tid=0x00d67800 nid=0x7ec waiting for monitor entry [0x0486f000
]
java.lang.Thread.State: BLOCKED (on object monitor)
at thread.MyThread.run(Deadlock.java:44)
- waiting to lock <0x24733128> (a java.lang.String)
- locked <0x247330f0> (a java.lang.String)
"Service Thread" daemon prio=6 tid=0x00d42400 nid=0x2238 runnable [0x00000000]
java.lang.Thread.State: RUNNABLE
"C1 CompilerThread0" daemon prio=10 tid=0x00d36000 nid=0x20cc waiting on conditi
on [0x00000000]
java.lang.Thread.State: RUNNABLE
"Attach Listener" daemon prio=10 tid=0x00d35000 nid=0x2408 waiting on condition
[0x00000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" daemon prio=10 tid=0x00d33800 nid=0x1fc8 runnable [0x0000000
0]
java.lang.Thread.State: RUNNABLE
"Finalizer" daemon prio=8 tid=0x00cc0400 nid=0x2544 in Object.wait() [0x0450f000
]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x246f0fb8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x246f0fb8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)
"Reference Handler" daemon prio=10 tid=0x00cbec00 nid=0x24b4 in Object.wait() [0
x0447f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x246f0da0> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x246f0da0> (a java.lang.ref.Reference$Lock)
"VM Thread" prio=10 tid=0x00cbd800 nid=0x1b44 runnable
"VM Periodic Task Thread" prio=10 tid=0x00d4e800 nid=0x1f20 waiting on condition
JNI global references: 111
Found one Java-level deadlock:
=============================
"Thread-1":
waiting to lock monitor 0x00d713d4 (object 0x247330f0, a java.lang.String),
which is held by "Thread-0"
"Thread-0":
waiting to lock monitor 0x00cc8c0c (object 0x24733128, a java.lang.String),
which is held by "Thread-1"
Java stack information for the threads listed above:
===================================================
"Thread-1":
at thread.YourThread.run(Deadlock.java:79)
- waiting to lock <0x247330f0> (a java.lang.String)
- locked <0x24733128> (a java.lang.String)
"Thread-0":
at thread.MyThread.run(Deadlock.java:44)
- waiting to lock <0x24733128> (a java.lang.String)
- locked <0x247330f0> (a java.lang.String)
Found 1 deadlock.
No comments:
Post a Comment