Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-07-30
3
Medium Priority
?
727 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
[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
  • 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 500 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

730 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