Solved

Automatically recycle application pool on an error and figuring out why app is failing

Posted on 2004-07-30
3
721 Views
Last Modified: 2008-02-26
Hello,
I am new to dealing with IIS as a web server (I miss Apache :() and I am trying to get used to this application pool thing.  Now, I understand that if a process starts taking too many resources,  rapid application recycling will disable the process after a set amount of times.

My question is, I am trouble shooting an ASP web page, where if you recycle the application pool, it automatically starts working again.  Rapid Application Recycling does not appear to be the problem because the pool is still active before I recycle it.  Is there a way to recycle the application pool automatically so that it doesn't have to manually be done and so that ASP pages won't break?

Also, what can be the cause of these symptoms?  Is it most likely bad ASP code?  If so, how would I even go about trouble shooting what code is causing the problems?
0
Comment
Question by:gexen
  • 2
3 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11682939
Rapid fail protection only comes into play if an Application Pool fails a number of times in a given period of time.  If this happens IIS assumes there is a problem with the Application Pool and stops the automatic restart to prevent an endless loop of startup/failure in a given Pool.

You can configure the health monitoring of a pool to automatically recycle a Pool based on time of day, number of requests served, lifespan or memory allocated.  If you set these the current worker thread will be shut down and a new one spun up to start handling requests. This is configured in the properties of the individual Application Pool.

There could be any number of causes for your issue.  Are there any errors being recorded in the Event Logs?

Dave Dietz

0
 
LVL 1

Author Comment

by:gexen
ID: 11684404
I know that.  What's really throwing me off is that nothing is being recorded in the Event Log, which is why I don't know where to start.
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 125 total points
ID: 11690943
Since the App Pool isn't crashing it sounds like you have a hang of some sort.....

See the following link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;286350

Collect a hang dump and make it available for download somewhere and I'll be happy to take a look at it for you.

Dave Dietz
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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