Sep
28
2017

Capture High CPU consuming process using Process Explorer

As a DBA we encounter situations when CPU is high on a DB server but DB is not consuming any CPU, we can see the processes consuming high CPU but don’t know how to identify that what process is doing causing issue and in cases where process is an encapsulated process like wscript.exe or any other system process we generally recommend server reboot but that generally washes out all logging; now as a DBA we know we can’t control such situations, so it’s always better to dump such process for future investigations and help identifying root cause, below is one such method to use process explorer utility to dump the problematic process and either open a MS case and provide it to them for analysis or download windbg utility and respective symbols to analyze on own, whatever be the case, this is an important thing to be handy always,

 

  1. Download process explorer from https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
  2. Copy procexp.exe to the impacted server
  3. Execute procexp.exe
  4. Go to Find > “Handle or DLL substring”
  5. Search for the process, match the PID of task explorer process with the searched process in process explorer
  6. Once process is identified, then select process in top pane and do following:

right click > create dump > create full dump… > select location which has more than 2GB free space and give a proper file name

  1. Once export is complete, compress file
  2. Open a Microsoft case and supply the dump file to them for further analysis

    Or

    -Go to https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/

    -Download appropriate version of windbg and respective symbol files

    -Open the dump

    -Analyze

 

 

Hope this helps!

 

Download PDF

About the Author: Nitin G

Indian born, trekker, biker, photographer, lover of monsoons. I've been working full time with SQL Server since year 2005 and blogs to post the content aquired during my research on new topics or fixing issues faced by me as a DBA while working in different kind of projects, hope some of my posts may helps others in SQLDBA community. Everything you read on my blog is my own personal opinion and any code is provided "AS-IS" with no warranties!

Leave a comment

Subscribe to this blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 34 other subscribers

Translate this blog!

EnglishFrenchGermanItalianPortugueseRussianSpanish

Calender

December 2017
M T W T F S S
« Nov    
 123
45678910
11121314151617
18192021222324
25262728293031

View Post by Categories

%d bloggers like this: