Cpu usage 100 % in sqlserver 2005,windows 2000 ser | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Cpu usage 100 % in sqlserver 2005,windows 2000 ser

hi, I am new to this issue, and i am not sure how to track down , which is occupying and making the use of CPu 100%. Can any of you tell be the basic things i have to go thru’ to resolve this issue..
USe the command sp_who2 active and identify the spids sucking up cpu. Or you can also query top 10 sysprocesses and order by cpu desc. once you have the spid, use DBCC INPUBUFFER(spid) to identify what the spid is doing. After that you need to look into the T-SQl or the proc and tune it. ***********************
Dinakar Nethi
***********************
http://weblogs.sqlteam.com/dinakar/
Use sql profiler to see what procedures using high cpu and recompilations…
High recompiles also cause high CPU…
MohammedU.
Microsoft SQL Server MVP
Moderator
SQL-Server-Performance.com All postings are provided “AS IS” with no warranties for accuracy.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by MohammedU</i><br /><br />Use sql profiler to see what procedures using high cpu and recompilations…<br />High recompiles also cause high CPU…<br /><br /><br />MohammedU.<br />Microsoft SQL Server MVP<br />Moderator<br />SQL-Server-Performance.com<br /><br />All postings are provided “AS IS” with no warranties for accuracy.<br /><br /><hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote"><br /><br />Mr M. If CPU is already chugging along 100%, using profiler on production server will kill the server.. [<img src=’/community/emoticons/emotion-5.gif’ alt=’;)‘ />]<br /><br />***********************<br />Dinakar Nethi<br />***********************<br /<a target="_blank" href=http://weblogs.sqlteam.com/dinakar/>http://weblogs.sqlteam.com/dinakar/</a>
I know [<img src=’/community/emoticons/emotion-1.gif’ alt=’:)‘ />]<br />Not always… it depends how much load your putting on the server…<br />You can try to put the filter and use procedures to grab only high cpu queries and don’t run for long time… run for couple of seconds/minutes…<br /><br />And also I believe you can use a report from SSMS to get high cpu queries….<br /><br /><br />MohammedU.<br />Microsoft SQL Server MVP<br />Moderator<br />SQL-Server-Performance.com<br /><br />All postings are provided “AS IS” with no warranties for accuracy.<br />
I agree with DInaker in this case and do not and never allow running PROFILER when the server is really stressed out on resources [<img src=’/community/emoticons/emotion-1.gif’ alt=’:)‘ />], in this cse running DMVs or even server side trace will help a lot to get such information.<br /><br />Priya<br />For the discussion on High cpu refer to<a target="_blank" href=http://sqlserver-qa.net/blogs/perftune/archive/2007/06/18/sql-server-2005-high-cpu-occurrence-why-it-is.aspx>http://sqlserver-qa.net/blogs/perftune/archive/2007/06/18/sql-server-2005-high-cpu-occurrence-why-it-is.aspx</a><br /><br /><b>Satya SKJ</b><br />Microsoft SQL Server MVP<br />Writer, Contributing Editor & Moderator<br /<a target="_blank" href=http://www.SQL-Server-Performance.Com>http://www.SQL-Server-Performance.Com</a><br />@<a target="_blank" href=http://www.askasqlguru.com/>http://www.askasqlguru.com/</a><br /><br /><center><font color="teal"><font size="1">This posting is provided AS IS with no rights for the sake of <i>knowledge sharing. <hr noshade size="1">Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it.</i></font id="size1"></font id="teal"></center>
]]>