Current location - Health Preservation Learning Network - Slimming men and women - The Cpu usage inside and outside the docker container is inconsistent.
The Cpu usage inside and outside the docker container is inconsistent.
The troubleshooting scheme for cpu occupation of Docker container is as follows:

1, the top command finds out the Java process ID;

2. Find out which thread ID occupies the highest cpu in the java process;

3. Convert the thread ID to16;

4. Grab the corresponding thread stack information;

5. Check the log information of thread exception: jstack process number |grep 16 binary exception thread number -A90.