Senrian opened a new pull request, #16217: URL: https://github.com/apache/dubbo/pull/16217
## Summary Fixes apache/dubbo#16194 `JVMUtil.jstack()` calls `ThreadMXBean.dumpAllThreads(true, true)`. The `lockedSynchronizers=true` parameter forces the JVM to scan the **entire Java heap** at a safepoint to find all `AbstractOwnableSynchronizer` instances. On ZGC with large heaps (65GB+), this causes catastrophic safepoint pauses (**36–39 seconds**) that freeze the entire application. This PR changes `lockedSynchronizers` from `true` to `false`, eliminating the heap scan. The OpenJDK community already fixed this on the tooling side ([JDK-8324066](https://bugs.openjdk.org/browse/JDK-8324066): "clhsdb jstack should not scan for j.u.c locks by default"), but the programmatic API (`ThreadMXBean.dumpAllThreads`) has no such protection. ## Changes - `JVMUtil.java`: `dumpAllThreads(true, true)` \u2192 `dumpAllThreads(true, false)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
