1.top -c 加 大寫P 查找高進程ID線程
2.top -Hp 加 大寫 P 查找高線程ID進程
3.printf '%x\n' 線程ID 轉成16進制grep
4.jstack 進程ID | grep 16進制線程IDtop
經過以上四個步驟就能夠找到代碼中的哪行是高消耗代碼。printf