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
 General SQL Server Forums
 New to SQL Server Administration
 busy server - trying to see why

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2009-11-24 : 07:47:44
sql server often uses most of the cpu
i'm trying to see why so I did a trace during a busy time saving it to a table

when i go to select * from trace where cpu>1000 order by cpu desc
on this table all the records that show have no textdata(textdata=null)
How can i find out what is tying the server up here?

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-11-24 : 08:22:35
quote:
Originally posted by esthera

sql server often uses most of the cpu
i'm trying to see why so I did a trace during a busy time saving it to a table

when i go to select * from trace where cpu>1000 order by cpu desc
on this table all the records that show have no textdata(textdata=null)
How can i find out what is tying the server up here?



i think the table is select * from sys.traces

-------------------------
R...
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2009-11-24 : 08:35:08
no i saved the tracet to a table - it's showing the right data but anything using the cpu of more then 1000 shows no textdata - so how can I tell why?
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-24 : 10:50:45
what is eventID of those that have blank textdata? tried converting textdata field to varchar?

another approach is to execute sp_who2 during busy time. look at runnable spids with high cpu time. execute dbcc inputbuffer for those spids

my guess is you have missing or poorly designed indexes
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2009-11-25 : 06:16:11
russel - I will try that next time it goes slow.
normally it's many small statements and not one thing tying the cpu at at time - i think
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-25 : 12:02:56
have a look here too http://www.sqlmag.com/Article/ArticleID/94884/sql_server_94884.html

may help u solve the problem before it gets slow again
Go to Top of Page

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2009-11-26 : 14:04:13
I couldn't open the article as i'm not a subscriber
but now it's busy and I did sp_who2 and I see hte big transactions - except for killing them - how can i debug what the issue is with them and what does it mean when it says sleeping?
Go to Top of Page
   

- Advertisement -