Solved

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

Posted on 2013-01-01
5
395 Views
Last Modified: 2013-01-09
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
0
Comment
Question by:David Todd
  • 3
5 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 38735262
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)
0
 
LVL 2

Accepted Solution

by:
RRobinho earned 300 total points
ID: 38736194
First to check how much CPU a SQL Server process is really using from the below article

SQL TIPS
0
 
LVL 42

Assisted Solution

by:EugeneZ
EugeneZ earned 200 total points
ID: 38739584
also you can try the sp_who3 (for sql2000) by Mike  Barzilli

http://vyaskn.tripod.com/sp_who3.htm
0
 
LVL 35

Author Comment

by:David Todd
ID: 38742146
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
0
 
LVL 42

Assisted Solution

by:EugeneZ
EugeneZ earned 200 total points
ID: 38742336
Tuning DBCC Commands
http://sqlserverpedia.com/wiki/Tuning_DBCC_Commands

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

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now