2

When I browse my website first time, internet keeps spinning/loading. If I two seconds later try to load it again, everything works fine.

It's like it's "sleeping".

I think it must have something to do with "recycling". I have set "Idle time-out" to 0 and Recycling "Regular time interval" to 0.

Before I browse my website, I take a look at "Worker process" and it says that the app pool process is running.

Any idea why my website "falls asleep"?

Thanks! Mojo

MojoDK
  • 4,410
  • 10
  • 42
  • 80

1 Answers1

1

Your ASP.NET pages are compiled the first time they are requested (see "Understanding ASP.NET Dynamic Compilation"). So this might be the issue why your first request takes so long.

To avoid that, you can precompile your ASP.NET application:

Martin Buberl
  • 45,844
  • 25
  • 100
  • 144
  • I'm sorry for not being clear. :) By initial request I mean if I browse my website now ... and I leave it for a couple of hours and then browse it again, then it still keeps spinning/loading without showing the page. So the page is compiled, it's just "sleeping". Any idea why? – MojoDK Feb 19 '11 at 22:06
  • Well, I would first check if recycling of the app pool is really your issue here. Specify that IIS should log an event when an application pool is recycled and check into it. – Martin Buberl Feb 19 '11 at 22:40