?
Solved

Disabling Application Pool

Posted on 2010-11-29
6
Medium Priority
?
660 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 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