Reload Application after App Pool Recycles

  • Thread starter Thread starter scolemann
  • Start date Start date
S

scolemann

Hi all,

I have my application pool set to recycle once a night. After
recycling it takes about 1 minute for my application to reload. That
is to say if I got to the site in the browser it takes about 1 minute
to load, when it normally loads in less than a few seconds.

I know that this is the normal behavior. Is there a way to force the
application to reload immediately after the recycle? That way the
first visitor to my site won't have to wait 1 minute?

Thanks,
Cole
 
If you're recycling the application pool at the same time every night,
you can use Task Scheduler to run your browser and hit the site
so that the first-time compilation is done.

"Control Panel", "Scheduled Tasks", "Add Scheduled Task".

See the pre-installed sample tasks for usage.

"start http://localhost/" would be one way to start, adding the schedule for that task.

Add other critical pages that you wish to be pre-compiled when visitors arrive.



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/
===================================
 
Back
Top