"Thread-1" #12 prio=5 os_prio=31 tid=0x00007f9f93833800 nid=0xa803 waiting for monitor entry [0x0000700007c4b000] java.lang.Thread.State: BLOCKED (on object monitor) at com.redisc.Run.lambda$main$1(Run.java:36) - waiting to lock <0x0000000795bf3de8> (a java.lang.Object) - locked <0x0000000795bf3df8> (a java.lang.Object) at com.redisc.Run$$Lambda$2/580024961.run(Unknown Source) at java.lang.Thread.run(Thread.java:748)
"Thread-0" #11 prio=5 os_prio=31 tid=0x00007f9f91066000 nid=0xa903 waiting for monitor entry [0x0000700007b48000] java.lang.Thread.State: BLOCKED (on object monitor) at com.redisc.Run.lambda$main$0(Run.java:22) - waiting to lock <0x0000000795bf3df8> (a java.lang.Object) - locked <0x0000000795bf3de8> (a java.lang.Object) at com.redisc.Run$$Lambda$1/1567581361.run(Unknown Source) at java.lang.Thread.run(Thread.java:748)
"Monitor Ctrl-Break" #5 daemon prio=5 os_prio=31 tid=0x00007f9f9001e000 nid=0x4503 runnable [0x0000700007433000] java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) - locked <0x0000000795719f78> (a java.io.InputStreamReader) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) - locked <0x0000000795719f78> (a java.io.InputStreamReader) at java.io.BufferedReader.readLine(BufferedReader.java:389) at com.intellij.rt.execution.application.AppMainV2$1.run(AppMainV2.java:61)
"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007f9f9380a800 nid=0x3003 in Object.wait() [0x0000700007127000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x0000000795588ee8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) - locked <0x0000000795588ee8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216)
"Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007f9f8f026000 nid=0x4d03 in Object.wait() [0x0000700007024000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x0000000795586c08> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference.tryHandlePending(Reference.java:191) - locked <0x0000000795586c08> (a java.lang.ref.Reference$Lock) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)
"VM Periodic Task Thread"os_prio=31 tid=0x00007f9f93815800 nid=0x5503 waiting on condition
JNI global references: 319
Found one Java-level deadlock: ============================= "Thread-1": waiting to lock monitor 0x00007f9f8e8100d8 (object 0x0000000795bf3de8, a java.lang.Object), which is held by "Thread-0" "Thread-0": waiting to lock monitor 0x00007f9f9109ca88 (object 0x0000000795bf3df8, a java.lang.Object), which is held by "Thread-1"
Java stack information for the threads listed above: =================================================== "Thread-1": at com.redisc.Run.lambda$main$1(Run.java:36) - waiting to lock <0x0000000795bf3de8> (a java.lang.Object) - locked <0x0000000795bf3df8> (a java.lang.Object) at com.redisc.Run$$Lambda$2/580024961.run(Unknown Source) at java.lang.Thread.run(Thread.java:748) "Thread-0": at com.redisc.Run.lambda$main$0(Run.java:22) - waiting to lock <0x0000000795bf3df8> (a java.lang.Object) - locked <0x0000000795bf3de8> (a java.lang.Object) at com.redisc.Run$$Lambda$1/1567581361.run(Unknown Source) at java.lang.Thread.run(Thread.java:748)
Found 1 deadlock.
发现
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
"Thread-1" #12 prio=5 os_prio=31 tid=0x00007f9f93833800 nid=0xa803 waiting for monitor entry [0x0000700007c4b000] java.lang.Thread.State: BLOCKED (on object monitor) at com.redisc.Run.lambda$main$1(Run.java:36) - waiting to lock <0x0000000795bf3de8> (a java.lang.Object) - locked <0x0000000795bf3df8> (a java.lang.Object) at com.redisc.Run$$Lambda$2/580024961.run(Unknown Source) at java.lang.Thread.run(Thread.java:748)
"Thread-0" #11 prio=5 os_prio=31 tid=0x00007f9f91066000 nid=0xa903 waiting for monitor entry [0x0000700007b48000] java.lang.Thread.State: BLOCKED (on object monitor) at com.redisc.Run.lambda$main$0(Run.java:22) - waiting to lock <0x0000000795bf3df8> (a java.lang.Object) - locked <0x0000000795bf3de8> (a java.lang.Object) at com.redisc.Run$$Lambda$1/1567581361.run(Unknown Source) at java.lang.Thread.run(Thread.java:748)