Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Application Pool Restart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tushar  Gupta - 04 Sep 2007 10:18 GMT
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
Peter Bromberg [C# MVP] - 04 Sep 2007 12:08 GMT
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

> Problem: Application Pool restart.
>
[quoted text clipped - 32 lines]
> Thanks and Regards,
> Tushar
Tushar  Gupta - 04 Sep 2007 15:05 GMT
On Sep 4, 4:08 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yohohhoandabottleofrum.com> wrote:
> 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
[quoted text clipped - 44 lines]
> > Thanks and Regards,
> > Tushar

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

regards,
Tushar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.