re:
!> Thanks for taking the time to answer my question.
No prob. I love helping others, like I was helped by many.
re:
!> One thing that I don't understand about the web application life cycle is what
!> will ever cause the application to end when no more requests are coming in?
You can configure IIS 6.0 and 7.0 to recycle the application pool the application lives in.
You can recycle the worker processes by :
....in the "Recycling tab
1. the number of minutes which have gone by since the application was started.
2. the total number of requests which have been made
3. a particular time of day which you define
4. the maximum amount of memory which you want the application to use
( For both physical and virtual memory. You can set different thresholds for each )
or...in the "Performance" tab
5. you can shutdown the worker process when the process has been idle for a soecified number of minutes
You set these parameters in the IIS Manager.
Scroll on the left to the "Application Pools" section, right click any Application Pool and select "Properties".
Experiment with the settings but don't set the thresholds too high, as that may affect performance.
For example: total memory consumption shouldn't be higher than 60% of your installed RAM.
I use 40% ( with 2GB RAM installed, so IIS will recycle the pools when they reach 800MB RAM used ).
That has never happened. At most, they have gotten to about 200MB.
I do recycle on other parameters, though.
You can set several options so if one doesn't occur another one will.
It's important to recycle your application pools before their excessive RAM usage clogs up your server.
re:
!> When I close the browser, this does not cause the Application_End event to trigger
Closing the browser isn't supposed to trigger Application_End.
re:
!> It also will not occur when I shut down the development server
The development server doesn't handle Application_End.
There would be no purpose to doing that because there's no Application Domain to restart.
Test Application_End on IIS.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
- Show quoted text -
Thanks for taking the time to answer my question. This is my first web
app that I'm doing for my company. One thing that I don't understand
about the web application life cycle is what will ever cause the
application to end when no more requests are coming in? Will it just
continue to remain in memory until the server is shut down? I'm
thinking that there probably is a time out setting somewhere, but I
don't know where it would be at this point.