Diagnosing runaway CPU in a .Net production application

前端 未结 10 691
野性不改
野性不改 2021-02-01 10:12

Does anyone know of a tool that can help me figure out why we are seeing runaway CPU in a managed app?

What I am not looking for:

10条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 10:23

    Use SysInternals ProcDump to get a mini-dump and windbg+sos to analyse it.

    The ProcDump utility is available here: http://technet.microsoft.com/en-us/sysinternals/dd996900.aspx

    Just send the exe to the user and tell him.her to run (for example):

    ProcDump MyProgram.exe -c 90 -s 10
    

    This will dump the process if it's consuming over 90% CPU for more then 10 seconds

提交回复
热议问题