KeepAlive

  • Thread starter Thread starter Robert Bravery
  • Start date Start date
R

Robert Bravery

HI All,

I have a few aspx websites that are not that busy, but when clients go to
them they complain that the are slow. I obviously put this down to the
behaviour of normal aspx pages, that go to sleep as it where after
inactivity.
My question, how can I write a keepalive utility that I can load on my pc
and "KeepAlive" all those inactive websites.
Or is there some place I can read up about this

Thanks
Robert
 
Is the site pre-compiled? Or is it compiled on the fly by ASP.NET?
Using a "web application project" to pre-compile the site can improve
perceived performance from a cold start. As for keeping it alive...
you'd just need to hit the page every so often; "curl" would do the
job - or new WebClient.DownloadString(url) in .NET; that will keep the
app-pool alive, which might help - or conversely you'll just be the
only visitor for the lifetime of the app-pool (i.e. before it
recycles) in which case you've just wasted a little CPU and bandwidth.

Marc
 

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

Back
Top