Solved

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

Posted on 2004-07-30
3
719 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

13 Experts available now in Live!

Get 1:1 Help Now