Application Pool Restart


T

Tushar Gupta

Problem: Application Pool restart.

We have a Web Application / Service running on IIS 6.0 on ASP.Net 2.0
framework. The service performs some operations in worker threads. At
times the Service stops suddenly and so do the worker threads.

For our application to function, we want the service to be up and
running without interruption. We changed all the recycle settings; but
the application pool still recycles after an indefinite time.

Here are the environment details / settings:
Operating System: Windows Server 2003 Server Edition
..Net framework version: 2.0.50727.42
ASP.Net Version: 2.0.50727

The settings on the Application pool are:
Recycling
Recycle worker processes (in minutes): false
Recycle worker processes (number of requests): false
Recycle worker processes at the following times: none
Memory recycle: no

Performance
Idle timeout: false

Health
Enable pining: true
Enable rapid-fail protection: true

Identity: Local System

If anyone can help in this regard, I want to know why the application
pool restarts and is there any way to stop it?

Thanks and Regards,
Tushar
 
Ad

Advertisements

G

Guest

If your application is being recycled by IIS under these settings, most
likely it is because an unhandled exception is being generated. Under ASP.NET
2.0, if an unhandled execption is caused, the AppDomain will unload and
ASP.NET will spin up a new process.
So the thing to do is find out what in your code is doing this, not
attempting to band-aid it with AppPool settings.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
 
Ad

Advertisements

T

Tushar Gupta

If your application is being recycled by IIS under these settings, most
likely it is because an unhandled exception is being generated. Under ASP.NET
2.0, if an unhandled execption is caused, the AppDomain will unload and
ASP.NET will spin up a new process.
So the thing to do is find out what in your code is doing this, not
attempting to band-aid it with AppPool settings.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

Hi Peter.
Thanks for your inputs. I will add the code to capture any unhandled
exceptions which our application might be throwing.

regards,
Tushar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top