SQL server Profiler and excution plan usage for CPU usage high analysis

1.  通过profiler去capture several minutes data;

2.  see which store procedure takes much time (for example, the store procedure take 6.5 seconds)

3. via the execution plan to analyze which SQL sentence takes time.

selected the SQL sentence and click "Display Estimated Execution plan", it will analyze.

   SQL server Profiler and excution plan usage for CPU usage high analysis_第1张图片

4.

SQL server Profiler and excution plan usage for CPU usage high analysis_第2张图片

5. see the snapshot above,

   it will tell u which part takes most of time.

for me, there is a table, which take much time.

6. so we need to create a non-clustered index for the column in the table, then rebuild it.

 

SQL server Profiler and excution plan usage for CPU usage high analysis_第3张图片

 

 

 

 

你可能感兴趣的:(SQL server Profiler and excution plan usage for CPU usage high analysis)