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 > Ratio of Adhoc plans to Stored proc plans in Cache
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Ratio of Adhoc plans to Stored proc plans in Cache

Réponse
 
LinkBack Outils de la discussion
Vieux 15/07/2008, 22h33   #1
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Ratio of Adhoc plans to Stored proc plans in Cache

Hi,

We just upgraded our production servers to SQL2005 SP2 build 3239 (CU7) and
of course we have some issues. We had a 701 error this morning that I feel
is because of the number of adhoc (dynamic) SQL plans in the cache. I just
took a peek at our cached plans and can see a 5 to 1 ratio of adhoc plans to
stored proc plans. This is a 32 bit server with 4Gb allowed out of 8Gb for
SQL.

I am quite sure that we are swamping our cache with adhoc plans but I would
like to know what other sites ratio's are for adhoc to stored proc plans?

Thanks

Chris


  Réponse avec citation
Vieux 16/07/2008, 02h50   #2
Denny Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ratio of Adhoc plans to Stored proc plans in Cache

Since you asked, here's what is in my cache for my production server.

objtype plans
Adhoc 2412
Check 6
Prepared 1457
Proc 461
Trigger 30
UsrTab 42
View 123

Now because of business requirements we have dynamic SQL within a few
stored procedures because of dynamic ordering requirements. Because
of this our ratios may be different than expected. All application
hits to the database are through stored procedures.

With a 32bit SQL Server, your plan cache can be no higher than 1 Gig.
This blog post and the article it points to explain the calculations.
(http://itknowledgeexchange.techtarge...-buffer-cache/)

Denny

On Tue, 15 Jul 2008 14:33:23 -0600, "Chris Wood"
<anonymous@microsoft.com> wrote:

>Hi,
>
>We just upgraded our production servers to SQL2005 SP2 build 3239 (CU7) and
>of course we have some issues. We had a 701 error this morning that I feel
>is because of the number of adhoc (dynamic) SQL plans in the cache. I just
>took a peek at our cached plans and can see a 5 to 1 ratio of adhoc plans to
>stored proc plans. This is a 32 bit server with 4Gb allowed out of 8Gb for
>SQL.
>
>I am quite sure that we are swamping our cache with adhoc plans but I would
>like to know what other sites ratio's are for adhoc to stored proc plans?
>
>Thanks
>
>Chris
>

  Réponse avec citation
Vieux 16/07/2008, 15h52   #3
Chris Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ratio of Adhoc plans to Stored proc plans in Cache

Denny,

We went from build 3159 to build 3239. Did some of the fixes either increase
the size of compiled plans or increase the memory needed to compile plans so
that a stored procedure that worked before the upgrade would throw a 701
memory error? In CU8 I see a fix if it is a compile that fails.

Thanks

Chris

"Denny Cherry" <mrdenny.nospam@mrdenny.com> wrote in message
news:l3hq74tpt1f02v2k2e34vh5m1jsbu4jv3b@4ax.com...
> Since you asked, here's what is in my cache for my production server.
>
> objtype plans
> Adhoc 2412
> Check 6
> Prepared 1457
> Proc 461
> Trigger 30
> UsrTab 42
> View 123
>
> Now because of business requirements we have dynamic SQL within a few
> stored procedures because of dynamic ordering requirements. Because
> of this our ratios may be different than expected. All application
> hits to the database are through stored procedures.
>
> With a 32bit SQL Server, your plan cache can be no higher than 1 Gig.
> This blog post and the article it points to explain the calculations.
> (http://itknowledgeexchange.techtarge...-buffer-cache/)
>
> Denny
>
> On Tue, 15 Jul 2008 14:33:23 -0600, "Chris Wood"
> <anonymous@microsoft.com> wrote:
>
>>Hi,
>>
>>We just upgraded our production servers to SQL2005 SP2 build 3239 (CU7)
>>and
>>of course we have some issues. We had a 701 error this morning that I feel
>>is because of the number of adhoc (dynamic) SQL plans in the cache. I just
>>took a peek at our cached plans and can see a 5 to 1 ratio of adhoc plans
>>to
>>stored proc plans. This is a 32 bit server with 4Gb allowed out of 8Gb for
>>SQL.
>>
>>I am quite sure that we are swamping our cache with adhoc plans but I
>>would
>>like to know what other sites ratio's are for adhoc to stored proc plans?
>>
>>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 07h25.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09926 seconds with 11 queries