Solved

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

Posted on 2013-01-01
5
415 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

840 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