Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Application Pool trouble connecting database

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS Admin Service will not stop  
Author Message
Jaap

External


Since: Jul 12, 2007
Posts: 4



(Msg. 1) Posted: Thu Jul 12, 2007 11:05 pm
Post subject: Application Pool trouble connecting database
Archived from groups: microsoft>public>inetserver>iis (more info?)

Sometimes when the W2003 is restarted the IIS applications cannot
connected to MSSQL.

When the Application Pool is manually stopped and again started the
connection to MSSQL succeeds.
(Recycle this Application Pool doesn't give this result.)

I think this has to do with IIS requests from visitors during
restarting with an IIS service started but the MSSQL is not yet ready.
Via the Application Pool a MSSQL connection is being initiated, but
failes. This state remaines until manual stop/start the pool.

Does anyone has a solution to this problem?

Jaap

 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
Jaap

External


Since: Jul 12, 2007
Posts: 4



(Msg. 2) Posted: Fri Jul 13, 2007 12:54 am
Post subject: Re: Application Pool trouble connecting database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 13 jul, 09:19, "Egbert Nierop \(MVP for IIS\)"
<egbert_nie... DeleteThis @nospam.invalid> wrote:
> "Jaap" <jan.sonnem... DeleteThis @gmail.com> wrote in message
>
> news:1184306750.843593.313550@57g2000hsv.googlegroups.com...
>
> > Sometimes when the W2003 is restarted the IIS applications cannot
> > connected to MSSQL.
>
> > When the Application Pool is manually stopped and again started the
> > connection to MSSQL succeeds.
> > (Recycle this Application Pool doesn't give this result.)
>
> > I think this has to do with IIS requests from visitors during
> > restarting with an IIS service started but the MSSQL is not yet ready.
> > Via the Application Pool a MSSQL connection is being initiated, but
> > failes. This state remaines until manual stop/start the pool.
>
> Do you see errors in the SQL Server event log? (Such as out of a limitation
> of connections?)

NO errors or warnings found in the SQLServer log !

 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
grego

External


Since: Jun 15, 2007
Posts: 12



(Msg. 3) Posted: Fri Jul 13, 2007 3:22 am
Post subject: Re: Application Pool trouble connecting database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 13 Jul, 08:54, Jaap <jan.sonnem... DeleteThis @gmail.com> wrote:
> On 13 jul, 09:19, "Egbert Nierop \(MVP for IIS\)"
>
>
>
> <egbert_nie... DeleteThis @nospam.invalid> wrote:
> > "Jaap" <jan.sonnem... DeleteThis @gmail.com> wrote in message
>
> >news:1184306750.843593.313550@57g2000hsv.googlegroups.com...
>
> > > Sometimes when the W2003 is restarted the IIS applications cannot
> > > connected to MSSQL.
>
> > > When the Application Pool is manually stopped and again started the
> > > connection to MSSQL succeeds.
> > > (Recycle this Application Pool doesn't give this result.)
>
> > > I think this has to do with IIS requests from visitors during
> > > restarting with an IIS service started but the MSSQL is not yet ready.
> > > Via the Application Pool a MSSQL connection is being initiated, but
> > > failes. This state remaines until manual stop/start the pool.
>
> > Do you see errors in the SQL Server event log? (Such as out of a limitation
> > of connections?)
>
> NO errors or warnings found in the SQLServer log !

Are you running IIS and SQL on the same server? It might be case of
staggering the startup so that SQL starts first and IIS when complete.
 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
"Egbert Nierop

External


Since: Oct 14, 2005
Posts: 201



(Msg. 4) Posted: Fri Jul 13, 2007 3:55 am
Post subject: Re: Application Pool trouble connecting database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jaap" <jan.sonnemans.DeleteThis@gmail.com> wrote in message
news:1184306750.843593.313550@57g2000hsv.googlegroups.com...
> Sometimes when the W2003 is restarted the IIS applications cannot
> connected to MSSQL.
>
> When the Application Pool is manually stopped and again started the
> connection to MSSQL succeeds.
> (Recycle this Application Pool doesn't give this result.)
>
> I think this has to do with IIS requests from visitors during
> restarting with an IIS service started but the MSSQL is not yet ready.
> Via the Application Pool a MSSQL connection is being initiated, but
> failes. This state remaines until manual stop/start the pool.

Do you see errors in the SQL Server event log? (Such as out of a limitation
of connections?)
 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
Jaap

External


Since: Jul 12, 2007
Posts: 4



(Msg. 5) Posted: Fri Jul 13, 2007 4:12 am
Post subject: Re: Application Pool trouble connecting database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 13 jul, 12:22, grego <gregorei....TakeThisOut@gmail.com> wrote:
> On 13 Jul, 08:54, Jaap <jan.sonnem....TakeThisOut@gmail.com> wrote:
>
>
>
>
>
> > On 13 jul, 09:19, "Egbert Nierop \(MVP for IIS\)"
>
> > <egbert_nie....TakeThisOut@nospam.invalid> wrote:
> > > "Jaap" <jan.sonnem....TakeThisOut@gmail.com> wrote in message
>
> > >news:1184306750.843593.313550@57g2000hsv.googlegroups.com...
>
> > > > Sometimes when the W2003 is restarted the IIS applications cannot
> > > > connected to MSSQL.
>
> > > > When the Application Pool is manually stopped and again started the
> > > > connection to MSSQL succeeds.
> > > > (Recycle this Application Pool doesn't give this result.)
>
> > > > I think this has to do with IIS requests from visitors during
> > > > restarting with an IIS service started but the MSSQL is not yet ready.
> > > > Via the Application Pool a MSSQL connection is being initiated, but
> > > > failes. This state remaines until manual stop/start the pool.
>
> > > Do you see errors in the SQL Server event log? (Such as out of a limitation
> > > of connections?)
>
> > NO errors or warnings found in the SQLServer log !
>
> Are you running IIS and SQL on the same server? It might be case of
> staggering the startup so that SQL starts first and IIS when complete.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Any idea how to arrange that IIS starts AFTER SQL has completed?
Or is it possible checking if there is a valid connection in the
Application Pool and if not then programmatically Stop and Restart
the Application pool?
 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
grego

External


Since: Jun 15, 2007
Posts: 12



(Msg. 6) Posted: Fri Jul 13, 2007 5:31 am
Post subject: Re: Application Pool trouble connecting database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 13 Jul, 12:12, Jaap <jan.sonnem....RemoveThis@gmail.com> wrote:
> On 13 jul, 12:22, grego <gregorei....RemoveThis@gmail.com> wrote:
>
>
>
> > On 13 Jul, 08:54, Jaap <jan.sonnem....RemoveThis@gmail.com> wrote:
>
> > > On 13 jul, 09:19, "Egbert Nierop \(MVP for IIS\)"
>
> > > <egbert_nie....RemoveThis@nospam.invalid> wrote:
> > > > "Jaap" <jan.sonnem....RemoveThis@gmail.com> wrote in message
>
> > > >news:1184306750.843593.313550@57g2000hsv.googlegroups.com...
>
> > > > > Sometimes when the W2003 is restarted the IIS applications cannot
> > > > > connected to MSSQL.
>
> > > > > When the Application Pool is manually stopped and again started the
> > > > > connection to MSSQL succeeds.
> > > > > (Recycle this Application Pool doesn't give this result.)
>
> > > > > I think this has to do with IIS requests from visitors during
> > > > > restarting with an IIS service started but the MSSQL is not yet ready.
> > > > > Via the Application Pool a MSSQL connection is being initiated, but
> > > > > failes. This state remaines until manual stop/start the pool.
>
> > > > Do you see errors in the SQL Server event log? (Such as out of a limitation
> > > > of connections?)
>
> > > NO errors or warnings found in the SQLServer log !
>
> > Are you running IIS and SQL on the same server? It might be case of
> > staggering the startup so that SQL starts first and IIS when complete.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> > - Tekst uit oorspronkelijk bericht weergeven -
>
> Any idea how to arrange that IIS starts AFTER SQL has completed?
> Or is it possible checking if there is a valid connection in the
> Application Pool and if not then programmatically Stop and Restart
> the Application pool?

Try changing the IIS Admin Service to be a dependancy of MSSQL serice.
That way, the load order will be so that SQL starts
before IIS admin. Or you could create a batch file thats executed that
will stop and start iis once the server has started. Another way
is to use a service like sitescope/servers alive or servervantage to
monitr your logs and detect such error...and add an action to restart
a
process/service.

Applications I work with handle a SQL crash and reconnect after its
restarted without an app pool refresh or recycle. I would seriously
ask your developers to look at this however.
 >> Stay informed about: Application Pool trouble connecting database 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]