Reload Application after App Pool Recycles

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
 
J

Juan T. Llibre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top