April 9, 2015 at 6:54 am
no more than at any other time, still looking
April 9, 2015 at 8:05 am
May have found the needle, started going through the snapshots Idera DM saves, as I scrolled through I noticed there is one stored procedure with about 12 occurances that was killing the server, the CPU ms for the session was over 100K, if I kept scrolling all the other connections were just fine. Today that same stored proc runs without issue. Almost like sql server somehow lost the roadmap to process this stored proc
April 9, 2015 at 8:46 am
tcronin 95651 (4/9/2015)
May have found the needle, started going through the snapshots Idera DM saves, as I scrolled through I noticed there is one stored procedure with about 12 occurances that was killing the server, the CPU ms for the session was over 100K, if I kept scrolling all the other connections were just fine. Today that same stored proc runs without issue. Almost like sql server somehow lost the roadmap to process this stored proc
Bad parameters sniffing? Capture the execution plan while it's running good. Next time it runs poorly, capture it again. Compare the two.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 9, 2015 at 12:29 pm
Found one more clue, the locks/sec almost tripled right at 8:30, thank goodness for Idera's snapshot with alerts
April 9, 2015 at 12:35 pm
Grant Fritchey (4/9/2015)
tcronin 95651 (4/9/2015)
May have found the needle, started going through the snapshots Idera DM saves, as I scrolled through I noticed there is one stored procedure with about 12 occurances that was killing the server, the CPU ms for the session was over 100K, if I kept scrolling all the other connections were just fine. Today that same stored proc runs without issue. Almost like sql server somehow lost the roadmap to process this stored procBad parameters sniffing? Capture the execution plan while it's running good. Next time it runs poorly, capture it again. Compare the two.
Either parameter sniffing or blocking, sounds even more like the latter to me. Can be tricky to detect unless one knows what to look for, how are the signal waits when this occurs?
😎
April 9, 2015 at 12:38 pm
no blocking that was the first thing I looked for. I had dropped an unused index the night before on a table that the stored proc that ran wild utilized. But after the restart I looked at the query plan it is using and it looks fine.
April 9, 2015 at 12:46 pm
time to get my eyes checked the lock reuests went to 50 Million not 500 K Not even sure how you can get to that number.
April 9, 2015 at 12:47 pm
tcronin 95651 (4/9/2015)
no blocking that was the first thing I looked for. I had dropped an unused index the night before on a table that the stored proc that ran wild utilized. But after the restart I looked at the query plan it is using and it looks fine.
This is starting/already becoming like a Trivial Pursuit game;-), as much fun as it is I suggest you collect your baseline date, any variances including recompilation triggers such as changing/dropping indexes and work through those, we can only keep guessing when only piecemeal facts are provided.
😎
April 9, 2015 at 12:51 pm
I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens either blocking or someone decided to run a cartesan join query. Hope to never see again
April 9, 2015 at 12:59 pm
tcronin 95651 (4/9/2015)
I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens either blocking or someone decided to run a cartesan join query. Hope to never see again
I know what you're saying, see this almost every day unfortunately, my thought is that one can never build too much on experience as just like trying to make things fool proof will only produce better fools:-D
😎
April 9, 2015 at 2:01 pm
Eirikur Eiriksson (4/9/2015)
tcronin 95651 (4/9/2015)
I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens either blocking or someone decided to run a cartesan join query. Hope to never see againI know what you're saying, see this almost every day unfortunately, my thought is that one can never build too much on experience as just like trying to make things fool proof will only produce better fools:-D
😎
My Dad has a notable quote. "If you make something idiot proof, only idiots will use it." 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 2:04 pm
Jeff Moden (4/9/2015)
Eirikur Eiriksson (4/9/2015)
tcronin 95651 (4/9/2015)
I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens either blocking or someone decided to run a cartesan join query. Hope to never see againI know what you're saying, see this almost every day unfortunately, my thought is that one can never build too much on experience as just like trying to make things fool proof will only produce better fools:-D
😎
My Dad has a notable quote. "If you make something idiot proof, only idiots will use it." 😛
Cannot comment, still grasping for air:exclamation:
😎
April 9, 2015 at 2:04 pm
tcronin 95651 (4/9/2015)
no blocking that was the first thing I looked for. I had dropped an unused index the night before on a table that the stored proc that ran wild utilized. But after the restart I looked at the query plan it is using and it looks fine.
This is going to sound mighty strange but not all "unused" indexes are unused. Some enforce certain constraints that the optimizer uses in its ethereal awareness to build execution plans. You might want to add that bad boy back in if you remember what it was.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2015 at 2:13 pm
I leaning towards more a bad plan, the sp now runs faster than it ever did before. I have always wondered whether you add/modify or delete and index that the sp was suppose to recognize this.
April 9, 2015 at 3:08 pm
It does sound more and more like a bad plan.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 15 posts - 16 through 30 (of 30 total)
You must be logged in to reply to this topic. Login to reply