High CPU Utilization in java application - why?

前端 未结 6 825
佛祖请我去吃肉
佛祖请我去吃肉 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 23:04

    In the thread dump you can find the Line Number as below.

    for the main thread which is currently running...

    "main" #1 prio=5 os_prio=0 tid=0x0000000002120800 nid=0x13f4 runnable [0x0000000001d9f000]
       java.lang.Thread.State: **RUNNABLE**
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:313)
        at com.rana.samples.**HighCPUUtilization.main(HighCPUUtilization.java:17)**
    

提交回复
热议问题