SQL server Profiler and excution plan usage for CPU usage high analysis
2013-10-17 15:45
465 查看
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.
4.
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.
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.
4.
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.
相关文章推荐
- Unexpected High CPU Usage with WebLogic Server
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(10)
- Plan for caching and performance in SharePoint Server 2013
- DMV to track the temp file usage for SQLServer
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(1)
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(7)
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(8)
- Configuring Kerberos for SharePoint 2007: Part 2 - Excel Services and SQL Analysis Services
- 转载:Plan freezing and other plan guide enhancements in SQL Server 2008
- Advanced SQL Server Monitor with Performance Graph, Analysis and Version Control
- A Developer's Guide to Data Modeling for SQL Server: Covering SQL Server 2005 and 2008
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(7)
- 《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(8)
- How to setup linked servers for SQL Server and Oracle 64 bit client
- Configure Windows Firewall for SQL Server 2008 Analysis Services in Windows Server 2008 R2
- SQL Server error "Xml data type is not supported in distributed queries" and workaround for it
- Issue 71 - pymssql - Undefined symbols on Mac, CentOS, Redhat with pre-compiled build - A fast MS SQL Server client library for Python directly using C API instead of ODBC. It is Python DB-API 2.0 compliant. Works on Linux, *BSD, Solaris, Mac OS X and Win
- CPU Overcommitment and Its Impact on SQL Server Performance on VMware
- [翻译-收藏] Batch Compilation, Recompilation, and Plan Caching Issues in SQL Server 2005