Getting the Java thread id and stack trace of run-away Java thread

前端 未结 5 788
有刺的猬
有刺的猬 2020-12-14 09:19

On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I\'ve not managed to figure out who is the culprit, af

5条回答
  •  萌比男神i
    2020-12-14 10:05

    On SUN

    Note that prstat by default shows the no of light weight processes , not the LWPID.

    To see information for all the lightweight processes for a particular user use the -L option.

    prstat -L -v -u weblogic
    

    now use the LWPID and convert it into hex and match it with the nid from the thread dump

提交回复
热议问题