Case 1: The CPU usage is too high
Location:
-
The top command is used to search for pids of processes with high CPU usageCopy the code
-
Ps H - eo pid tid % CPU | grep process id, further to the threadCopy the code
-
Jstack process ID 1. Find the number of code lines based on the thread ID (converted to hexadecimal)Copy the code