Solved

Disabling Application Pool

Posted on 2010-11-29
6
655 Views
Last Modified: 2012-05-10
I'm trying to learn what causes application pool to be disabled based on the "Rapid-Fail  Protection" settings in IIS 6 and IIS 7.

What I'm really interested to know is how I can make app throw exceptions/errors that could disable application pool based on 1 error/failure in 1 minute threshold.

ASP.NET Run time errors, simple App Exceptions do not seem to bring the app pool down, but what could?

Thanks for your help

0
Comment
Question by:ExcUsr2008
  • 3
  • 2
6 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34234711
If an app pool suffers a serious fault then IIS will recycle it. If IIS has to recycle the pool a specific number of times within a defined period then it assumes there is a major glitch with the system, or one of the applications in the pool, so it will disable the pool in order to maintain overall server stability.
0
 

Accepted Solution

by:
ExcUsr2008 earned 0 total points
ID: 34238119
thanks for your response, but no ... it would not assume the major glitch is with the system, but the application itself or its configuration.

Once again, "What I'm really interested to know is how I can make app throw exceptions/errors that could disable application pool based on 1 error/failure in 1 minute threshold."

One experiment I did was to simulate memory leak in the application and it did bring the application pool down (disabled). So I'm interested to know what kind of issues cause app pool to be disabled.

//This will eat up max memory allocated and cause IIS to disable the app pool that is hosting the application.
  List<byte[]> list = new List<byte[]>();
        while (true)
        {
            list.Add(new byte[1024*10]);
            System.Threading.Thread.Sleep(1);
        }
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34238160
>> it would not assume the major glitch is with the system, but the application itself or its configuration.

Erm, yes it would! It assumes it's a recurring fault beyond the control of IIS to fix, which could either be a problem with the application or something on the system outside of the web app itself that causes the fault. A disk read failure could cause the app pool to recycle...which as far as IIS is concerned is a SYSTEM fault.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34238268
0
 

Assisted Solution

by:ExcUsr2008
ExcUsr2008 earned 0 total points
ID: 34240318
Thanks both for your responses and I agree disk read failure can cause worker process to be disabled, in fact the pool wont even start if there is a H/W issues, and that's all good.

But I believe my question is not answered yet. Again, I'm trying to find the types of "application failures", meaning bugs within the code that could cause IIS to disable the application pools. I even provided an example of code  (out of memory) in my previous response to to be clear in my question.

0
 

Author Closing Comment

by:ExcUsr2008
ID: 34317134
Have not received proper answer to the question.

I've provided a partial answer as an example myself.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question