FrankChen021 / bithon

An observability platform mainly for Java
Apache License 2.0
15 stars 5 forks source link

dump threads monitor state #525

Closed FrankChen021 closed 1 year ago

FrankChen021 commented 1 year ago

Use ThreadInfo to get the monitor state instead of using java.lang.Thread.getAllStackTraces()

        ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);