Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

URGENT: CPU 100% SQLSERVR.EXE but no high CPU process Expand / Collapse
Author
Message
Posted Tuesday, December 11, 2012 3:10 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, August 7, 2014 7:15 AM
Points: 125, Visits: 408
This morning on our production SQL 2005 9.0.3353 box it is running at 100% CPU.
I have looked at sysprocessses but there is no record showing an abnormally large CPU value.
We have restarted the server and it went back to 100% before any users logged in.
Ther are no SQL Agent jobs running ( I have even stopped that service but sqlservr.exe is still at 99%)

Normally I can find a process/connection causing high CPU but in this case there is no process causing it that I can find.

Before we look at installing SP4 as a guess as it has been running fine for a few years now.

Any ideas?
Post #1394987
Posted Tuesday, December 11, 2012 4:04 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, August 7, 2014 7:15 AM
Points: 125, Visits: 408
Rather than 1 process, it seems that FETCH_APICursor is recorded thousands of times so the cumulative effect is total CPU.
In SQL profiler, this shows as cursor fetch etc. but for all users.
The application uses cursors heavily (don't ask).

Is there anything to check as to why there would be more calls to a cursor than before, such as tempdb issue?
There is nothing in SQL logs.



Post #1395019
Posted Tuesday, December 11, 2012 4:10 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 8:55 AM
Points: 5,216, Visits: 5,064
Read chapter 3 of the accidental DBA guide, link in my signature below to the download.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1395022
Posted Tuesday, December 11, 2012 4:17 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, August 7, 2014 7:15 AM
Points: 125, Visits: 408
Thanks for the pointer, I'll read through that.

Normally I find it is a single process which is easy to spot/fix.
Post #1395024
Posted Tuesday, December 11, 2012 10:22 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, March 3, 2014 4:05 AM
Points: 47, Visits: 236
please check any sql system background process is running with high CPU

like CHECKPOINT , LAZY WRITER ,RESOURCE MONITOR
Post #1395427
Posted Tuesday, December 11, 2012 10:48 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 4:49 AM
Points: 251, Visits: 602
Problem may be there in your cursor any one of them
may be going into a infinite loop
thats why the cpu usage may be high all the time
due to the infinite loop
Post #1395433
Posted Wednesday, December 12, 2012 1:47 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 8:55 AM
Points: 5,216, Visits: 5,064
What is the application which the database serves? Going to go out on a wild guess and say Dynamics?



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1395494
Posted Wednesday, December 12, 2012 1:57 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, August 7, 2014 7:15 AM
Points: 125, Visits: 408
Amazing, good guess
Post #1395502
Posted Wednesday, December 12, 2012 2:11 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 8:55 AM
Points: 5,216, Visits: 5,064
http://www.microsoft.com/en-gb/download/details.aspx?id=13647
Troubleshooting Dynamics

Two links I have used in the past on configuring the DB server for Dynamics, and also trouble shooting Dynamics.




Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1395511
Posted Wednesday, December 12, 2012 2:16 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, August 7, 2014 7:15 AM
Points: 125, Visits: 408
Thanks, but we are not using that member of the dynamics family (we use NAV which is even more cursor heavy) but the 'concepts' still apply.

Post #1395517
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse