URGENT: CPU 100% SQLSERVR.EXE but no high CPU process

  • 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?

  • 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.

  • Read chapter 3 of the accidental DBA guide, link in my signature below to the download.

  • Thanks for the pointer, I'll read through that.

    Normally I find it is a single process which is easy to spot/fix.

  • please check any sql system background process is running with high CPU

    like CHECKPOINT , LAZY WRITER ,RESOURCE MONITOR

  • 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

  • What is the application which the database serves? Going to go out on a wild guess and say Dynamics?

  • Amazing, good guess 🙂

  • 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.

  • 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.

  • Yeah its the smaller sibling of AX but based on the same principles so yes the two do go hand in hand.

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply