1. Check the process
# 查看cpu过高的进程
top -c
2. Use the pid to find the thread with too high CPU
# 查找
ps H -eo pid,tid,%cpu | grep 19235
You can see that 19236 is too high
3. Thread conversion to hexadecimal
printf "%x\n" 19236
4. View the code address
# 19235 进程
# 4b24 线程16进制
# -A20 前20行
jstack 19235 | grep 4b24 -A20