Keep an ASP.NET IIS website responsive when time between visits is long

Posted by Abel on Stack Overflow See other posts from Stack Overflow or by Abel
Published on 2009-11-03T21:47:53Z Indexed on 2010/05/26 12:31 UTC
Read the original article Hit count: 274

Filed under:
|
|

After years of ASP.NET development I'm actually quite surprised that I can't seem to find a satisfying solution for this.

Why does an IIS ASP.NET site always seem to fall asleep (for 2-6 seconds) after a certain time of inactivity (after several hours), during which no HTTP response is sent from server to client. This happens on any type of site, one page or many, db or not, regardless the settings. How can I fix this?

During the wait time, the server is not busy and there are no high peaks or (.NET) memory shortages. My guess is, it has to do with Windows moving the IIS process to the background and its memory to the page file, but I'm not sure. Anybody any idea?

EDIT: one solution is to send some HTTP request once an hour or so, but I hope for something more constructive.
EDIT: what I meant is: after hours of inactivity, it pauses several seconds on any new HTTP request.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET