?
Solved

Disabling Application Pool

Posted on 2010-11-29
6
Medium Priority
?
665 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

840 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