PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Deadlocks in msdb on SQL2005
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Deadlocks in msdb on SQL2005

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2008, 15h44   #1 (permalink)
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Deadlocks in msdb on SQL2005

Hi,

We run maintenance plan created SSIS packages to backup our databases. The
final step is the cleanup of the jobhistory. We see the occasional deadlock
coming from sp_maintplan_delete_log.

Now I know that msdb backup tables have no indexes. We are looking at
implementing Geoff Hiten's suggested indexes
http://weblogs.sqlteam.com/geoffh/ar...ce-Tuning.aspx

Will this our deadlocks?

Thanks

Chris


  Réponse avec citation
Vieux 27/03/2008, 15h48   #2 (permalink)
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

Typically, adding an index will not resolve deadlock problems, though it may
the error get raised faster. :-) However, that might not always be
the case. Do you have more information about the deadlock? Which object is
deadlocked, and what is the other process trying to do? Adding Geoff's
indexes aren't going to hurt anything, so I would suggest just adding them,
and then wait to see if you get the deadlock again. Who knows, maybe it is
the magic pill... but impossible to know without having more information
about the deadlock itself...



"Chris Wood" <anonymous@microsoft.com> wrote in message
news:OaF3pkBkIHA.1168@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> We run maintenance plan created SSIS packages to backup our databases. The
> final step is the cleanup of the jobhistory. We see the occasional
> deadlock coming from sp_maintplan_delete_log.
>
> Now I know that msdb backup tables have no indexes. We are looking at
> implementing Geoff Hiten's suggested indexes
> http://weblogs.sqlteam.com/geoffh/ar...ce-Tuning.aspx
>
> Will this our deadlocks?
>
> Thanks
>
> Chris
>



  Réponse avec citation
Vieux 27/03/2008, 15h53   #3 (permalink)
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

>> We run maintenance plan created SSIS packages to backup our databases.
>> The final step is the cleanup of the jobhistory. We see the occasional
>> deadlock coming from sp_maintplan_delete_log.


Is it possible that two maintenance plans are calling this procedure
at/around the same time? If so, my suggestion would be to create your own
job that deletes ALL maintenance plan logs, say once a day, by passing in
only the @oldest_time parameter. And then set each maintenance plan to not
delete its own logs.


  Réponse avec citation
Vieux 27/03/2008, 16h04   #4 (permalink)
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

Understanding how the cleanup tasks work now rather than before we created
the jobs makes this a much better idea. We may well have to change our
backups to just do the one cleanup job a day.

Thanks

Chris

"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:u5QsnqBkIHA.5820@TK2MSFTNGP04.phx.gbl...
>>> We run maintenance plan created SSIS packages to backup our databases.
>>> The final step is the cleanup of the jobhistory. We see the occasional
>>> deadlock coming from sp_maintplan_delete_log.

>
> Is it possible that two maintenance plans are calling this procedure
> at/around the same time? If so, my suggestion would be to create your own
> job that deletes ALL maintenance plan logs, say once a day, by passing in
> only the @oldest_time parameter. And then set each maintenance plan to
> not delete its own logs.
>



  Réponse avec citation
Vieux 27/03/2008, 16h06   #5 (permalink)
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

If you can reproduce this easily, I would file a bug on connect. Multiple
maintenance plans should play nice.



"Chris Wood" <anonymous@microsoft.com> wrote in message
news:OGC8ovBkIHA.4244@TK2MSFTNGP06.phx.gbl...
> Understanding how the cleanup tasks work now rather than before we created
> the jobs makes this a much better idea. We may well have to change our
> backups to just do the one cleanup job a day.



  Réponse avec citation
Vieux 27/03/2008, 16h27   #6 (permalink)
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

I had raised a bug on Connect about the cleanup just running the delete
stored proc without a job name parameter bug 322320, but then Andrew Kelly
corrected me in how attaching a cleanup task to a maintenance plan had no
idea what the job was called so it could add the parameter.

I may look at running the cleanup a number of times a day so it does not
deadlock with other maintenance jobs adding to the jobhistory.

Thanks again.

Chris

"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:%23m9FvxBkIHA.5208@TK2MSFTNGP04.phx.gbl...
> If you can reproduce this easily, I would file a bug on connect. Multiple
> maintenance plans should play nice.
>
>
>
> "Chris Wood" <anonymous@microsoft.com> wrote in message
> news:OGC8ovBkIHA.4244@TK2MSFTNGP06.phx.gbl...
>> Understanding how the cleanup tasks work now rather than before we
>> created the jobs makes this a much better idea. We may well have to
>> change our backups to just do the one cleanup job a day.

>
>



  Réponse avec citation
Vieux 27/03/2008, 17h00   #7 (permalink)
Tom Cooper
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

I have seen cases where indexes ed greatly with deadlocks even if it
didn't cure them. If you have two processes which have transactions which
can deadlock with each other, then making one or both of these processes run
faster can greatly reduce the chances that they are both running at the same
time and thus at least decrease the number of deadlocks.

Tom

"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:OK7$qnBkIHA.1188@TK2MSFTNGP04.phx.gbl...
> Typically, adding an index will not resolve deadlock problems, though it
> may the error get raised faster. :-) However, that might not always
> be the case. Do you have more information about the deadlock? Which
> object is deadlocked, and what is the other process trying to do? Adding
> Geoff's indexes aren't going to hurt anything, so I would suggest just
> adding them, and then wait to see if you get the deadlock again. Who
> knows, maybe it is the magic pill... but impossible to know without having
> more information about the deadlock itself...
>
>
>
> "Chris Wood" <anonymous@microsoft.com> wrote in message
> news:OaF3pkBkIHA.1168@TK2MSFTNGP02.phx.gbl...
>> Hi,
>>
>> We run maintenance plan created SSIS packages to backup our databases.
>> The final step is the cleanup of the jobhistory. We see the occasional
>> deadlock coming from sp_maintplan_delete_log.
>>
>> Now I know that msdb backup tables have no indexes. We are looking at
>> implementing Geoff Hiten's suggested indexes
>> http://weblogs.sqlteam.com/geoffh/ar...ce-Tuning.aspx
>>
>> Will this our deadlocks?
>>
>> Thanks
>>
>> Chris
>>

>
>



  Réponse avec citation
Vieux 27/03/2008, 21h51   #8 (permalink)
TheSQLGuru
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deadlocks in msdb on SQL2005

Try adding in these indexes:

http://weblogs.sqlteam.com/geoffh/ar...ce-Tuning.aspx

--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net


"Chris Wood" <anonymous@microsoft.com> wrote in message
news:OaF3pkBkIHA.1168@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> We run maintenance plan created SSIS packages to backup our databases. The
> final step is the cleanup of the jobhistory. We see the occasional
> deadlock coming from sp_maintplan_delete_log.
>
> Now I know that msdb backup tables have no indexes. We are looking at
> implementing Geoff Hiten's suggested indexes
> http://weblogs.sqlteam.com/geoffh/ar...ce-Tuning.aspx
>
> Will this our deadlocks?
>
> Thanks
>
> Chris
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h47.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12351 seconds with 16 queries