SQL using lot of CPU, but not much showing up in sp_who

David Todd
David Todd used Ask the Experts™
on
Hi Experts,

Version is SQL 2000 Standard Edition (SP3).

Client says main application is running slow. Suspicion is that another database is using too much SQL and the main application is suffering.

In task manager SQL is using most of CPU.sp_who2 shows almost no activity.

I'm running a 24/48 hour performance monitor counters to see what is happening. I included transaction/sec on each of two main databases.

Where to look next? Is there something else that can tell me which database is taking all the CPU?

Thanks
  David
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
check http://www.sql-server-performance.com/forum/threads/database-server-100-cpu-usage.5862/
check what process is taking cpu in taskmanager ( it could be AV)
Commented:
First to check how much CPU a SQL Server process is really using from the below article

SQL TIPS
Commented:
also you can try the sp_who3 (for sql2000) by Mike  Barzilli

http://vyaskn.tripod.com/sp_who3.htm
David ToddSenior Database Administrator

Author

Commented:
Hi Guys,

Thanks for the input.

The link from EugeneZ looked interesting, but it referred to other threads and those links were broken.

The link to SQL tips looked good, and was following that. But with the server reboot, things have settled back down and minimal to no cpu activity by SQL. Cumulatively, its still second to idle, but was showing 0% when I checked.

I've heard of replacements for sp_who and sp_who2. I may check them out.

I'd like to keep the question open for a few more days and I'll post what I find after the weekend/feedback from business unit owner.

Thanks
  David
Commented:
Tuning DBCC Commands
http://sqlserverpedia.com/wiki/Tuning_DBCC_Commands

probably sql profiler\erfmin could be your the best tool for this case

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial