安裝
wget --no-check-certificate https://raw.github.com/oldratlee/useful-scripts/release/show-busy-java-threads
chmod +x show-busy-java-threads
./show-busy-java-threads
如果出現如下報錯是因為進程不是root啟動的,進程是什么用戶起的,就用什么用戶去跟蹤
詳見
https://github.com/oldratlee/useful-scripts/blob/master/docs/java.md#beer-show-busy-java-threadssh