Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
very high CPU, 0 I/O, no blocking, NULL in...
very high CPU, 0 I/O, no blocking, NULL in wait type? What could be possibly going wrong?
Rate Topic
Display Mode
Topic Options
Author
Message
curious_sqldba
curious_sqldba
Posted Wednesday, October 31, 2012 10:31 AM
Ten Centuries
Group: General Forum Members
Last Login: 2 days ago @ 8:11 PM
Points: 1,172,
Visits: 2,686
I have a select query which is in a "hung" state. I checked there is no blocking. From the activity monitor i see that Wait type is NULL. I do see very very high CPU and 0 on I/O. What could be wrong? Any advice?
Post #1379426
Jack Vamvas
Jack Vamvas
Posted Wednesday, October 31, 2012 11:02 AM
SSC Rookie
Group: General Forum Members
Last Login: 2 days ago @ 11:44 PM
Points: 25,
Visits: 245
Has this query been regularly as OK? or is it a new query?
Are the statistics up to date?
Have you checked sys.dm_exec_requests for more detailed information?
Jack Vamvas
sqlserver-dba.com
Post #1379449
sanket kokane
sanket kokane
Posted Thursday, November 01, 2012 1:44 AM
Old Hand
Group: General Forum Members
Last Login: Today @ 1:13 AM
Points: 323,
Visits: 964
can you please post the Query.
is it linked server related query ?
-----------------------------------------------------------------------------
संकेत कोकणे
Post #1379653
Markus
Markus
Posted Friday, November 02, 2012 6:20 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 10:34 AM
Points: 1,046,
Visits: 2,212
Find out which SPID it is using and do a SP_WHO2 xxx where xxx is the SPID of the running query. Run this a few times to see if the CPU and I/O are increasing.
Also, do an explain plan on it to see if it is using indexes or table scans. Then see if you can add tuning indexes to make it run more efficiently.
Also, change the SELECT statement to SELECT COUNT(1) to see if it will, somewhat quickly tell you how many rows it should return. Does it return 1 row, 500 rows, 20 million....
Other questions....
Has this query run before... on a regular basis... did it run quickly before and all of a sudden gone crazy.
How big is the table(s), are stats up-to-date... could reindexing the tables be an option?
Post #1380317
SQLQuest29
SQLQuest29
Posted Friday, November 02, 2012 10:58 AM
Say Hey Kid
Group: General Forum Members
Last Login: Yesterday @ 2:19 PM
Points: 713,
Visits: 2,855
sqldba_newbie (10/31/2012)
I have a select query which is in a "hung" state. I checked there is no blocking. From the activity monitor i see that Wait type is NULL. I do see very very high CPU and 0 on I/O. What could be wrong? Any advice?
you can do .. select * from sys.dm_os_waiting_Tasks and join with sys.dm_exec_requests and sys.dm_exec_sessions to see whats going on ..
Also, Adam Mechanic's sp_whoIsActive is another good stuff that will tell u whats going on currently.
without giving more info about your environment and what steps u have taken to troubleshoot, its very difficult to help you.
HTH,
Cheers !
"Never take life too seriously, nobody gets out of it anyways !
When your love and skills unite, expect a masterpiece !"
Post #1380512
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.