Pool recycling on IIS 6

  • Thread starter Thread starter Oriane
  • Start date Start date
O

Oriane

Hi there,

On a client site, on a w2k3 production server, I can see with my
HealthMonitoring log that my IIS 6 pool restarts every hour (I log the
Application_Start event). This pool (dedicated to my asp.Net app) has the
default parameters/configuration.

I would like to know what parameters (on the config files ?) I have to check
in order to discover the reason of this behaviour.

Best regards
 
re:
!> I would like to know what parameters (on the config files ?)
!> I have to check in order to discover the reason of this behaviour.

Open the IIS Manager, scroll down to the Application pool
in question, right-click the App Pool and select "Properties".

The "Recycling" tab allows you to configure the parameters.





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
=========================
 
Hi Juan,
Juan T. Llibre said:
re:
!> I would like to know what parameters (on the config files ?)
!> I have to check in order to discover the reason of this behaviour.

Open the IIS Manager, scroll down to the Application pool
in question, right-click the App Pool and select "Properties".
As I said, I didn't modify these parameters, so in the Recycling tab all the
checkboxes are unchecked.

Best regards
 
re:
!> in the Recycling tab all the checkboxes are unchecked

You should check the most appropiate parameter for your case,
and configure the recycling to be performed on that basis.

If the problem is that the "IIS 6 pool restarts every hour", what do you want to do ?

Pick either a number of minutes, a number of requests, a specific time
or when the memory consumed reaches the maximum value you feel comfortable with.

If you don't choose any, ASP.NET will default to the maximum
allowed memory size as a percentage of total system memory.

By default the worker process can consume 60% before
ASP.NET launches a new process and reassigns existing requests.

That value is set in machine.config, in the processModel's memoryLimit parameter.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
=========================
 
Hi Oriane,

Besides, please check if you're running some software that may edit the
web.config every hour.


Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Juan T. Llibre said:
re:
!> in the Recycling tab all the checkboxes are unchecked

You should check the most appropiate parameter for your case,
and configure the recycling to be performed on that basis.

If the problem is that the "IIS 6 pool restarts every hour", what do you
want to do ?
I would like to recycle once a day, say, every day at midnight. Besides, a
second server, identical and installed with the same parameters (however, I
will check again !) and software, doesn't have this behavior. The pool
recycles once a day.

Pick either a number of minutes, a number of requests, a specific time
or when the memory consumed reaches the maximum value you feel comfortable
with.

If you don't choose any, ASP.NET will default to the maximum
allowed memory size as a percentage of total system memory.

By default the worker process can consume 60% before
ASP.NET launches a new process and reassigns existing requests.

That value is set in machine.config, in the processModel's memoryLimit
parameter.
Ok thanks for your reply. I will be on my client site in a few hours...

Best regards
 
re:
!> I would like to recycle once a day, say, every day at midnight.

Select the Application Pool in question, right-click and select "Properties",
select "recycle worker processes at the following times" in the "Recycling" tab,
click "Add" and select 00:00 for the time at which the recycling will occur.

That configures the worker process recycle for every night at midnight.

Make sure you don't also have selected "recycle worker process(in minutes)"
or the worker process will also be recycled when the value in minutes is reached
( the default value for that is 1740 minutes, which works out to every 29 hours ).





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
=========================
 
Hi Oriane,

Quote from Oriane ==================================================
Besides, a second server, identical and installed with the same parameters
(however, I
will check again !) and software, doesn't have this behavior. The pool
recycles once a day.
==================================================

Besides the settings in IIS, there're a few other reasons that may cause
the application recycles, such as editing web.config. You can refer to the
following article to troubleshoot this issue.

http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-sessio
n-variables-and-appdomain-recycles.aspx

Please feel free to let me know if you need further assistance.


Regards,
Allen Chen
Microsoft Online Support
 
Hi Oriane,

Have you solved this issue?

Regards,
Allen Chen
Microsoft Online Support
 
Yes, although I don't know how ! My colleague has changed some parameters on
the pool and now it's just fine.

Best regards
 
Back
Top