Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 sql is using 75% of cpu without running much

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-07-16 : 01:53:05
sql is now using 75% of the cpu and i did a profiler and nothing big is running - just a few small queries.

how can i see what's causing it?
the same thing happened yesterday and i restarted sql - but I don't want to constantly be restarting. sp_who2 doesn't show anything either

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-07-16 : 03:38:25
Are you sure it's SQL using the CPU?

What version of SQL? If you look in sysprocesses/sys.dm_exec_requests do you see blocked queries or queries with wait types and high wait times? If so, what wait types?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-16 : 13:30:30
Did you check whether memory is paged out in event log? Is it 64-bit standard edition? Why are you restarting server? Check with Performance monitor and Profiler what is the bottleneck?
http://www.mssqltips.com/tip.asp?tip=1212
Please:Donot run this on Production server:
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-07-16 : 13:35:41
i ran profiiler - it was a bunch of small update queries that i guess were saved in memory - any way to not let this happen?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-16 : 13:37:13
You didn't answer my question.
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-07-16 : 13:48:58
Did you check whether memory is paged out in event log? Is it 64-bit standard edition?
how do i know this?
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-16 : 13:50:14
run:
select @@version

also check event log in control panel in box.
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-07-16 : 14:05:20
microsoft sql server 2005 9.00.3054 (intel x86 )

i don't see anything in the event log
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-16 : 23:05:53
Use sp_who2 to find out which process uses most cpu time.
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2008-07-17 : 01:30:06
nothing showed up in sp_who2 - that's the strange thing

i think it was a bunch of little update statements that had run through the night and were still in memory

is that possible?
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-07-17 : 14:26:42
Only if they were still running.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-17 : 23:44:15
>> nothing showed up in sp_who2

Impossible, at least have system prosesses.
Go to Top of Page
   

- Advertisement -