Solved

Disabling Application Pool

Posted on 2010-11-29
6
653 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
Comment Utility
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
Comment Utility
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
Comment Utility
>> 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 29

Expert Comment

by:Kumaraswamy R
Comment Utility
0
 

Assisted Solution

by:ExcUsr2008
ExcUsr2008 earned 0 total points
Comment Utility
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
Comment Utility
Have not received proper answer to the question.

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now