How to find out which thread holds the monitor?
问题 My application is using Gson 2.2 for converting POJOs to JSON . When I was making a load test I stumbled upon a lot of threads blocked in Gson constructor: "http-apr-28201-exec-28" #370 daemon prio=5 os_prio=0 tid=0x0000000001ee7800 nid=0x62cb waiting for monitor entry [0x00007fe64df9a000] java.lang.Thread.State: BLOCKED (on object monitor) at com.google.gson.Gson.<init>(Gson.java:200) at com.google.gson.Gson.<init>(Gson.java:179) Thread dump does NOT show any threads holding