High CPU Utilization in java application - why?

前端 未结 6 722
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 22:44

I have a Java Application (web-based) that at times shows very high CPU Utilization (almost 90%) for several hours. Linux TOP command shows this. On application res

6条回答
  •  长情又很酷
    2021-01-29 22:55

    If a profiler is not applicable in your setup, you may try to identify the thread following steps in this post.

    Basically, there are three steps:

    1. run top -H and get PID of the thread with highest CPU.
    2. convert the PID to hex.
    3. look for thread with the matching HEX PID in your thread dump.

提交回复
热议问题