Link to home
Start Free TrialLog in
Avatar of colemaj1
colemaj1

asked on

IIS Page Load Delay

I have an asp.net website hosted on an win2k3 IIS 6.0 server.  The site only gets a few hits per day, but these hits are very important b/c of the products we are selling.  The site normally loads extremely fast.  But, when the site has not been hit for a while, say 30 minutes, I get a long initial delay of around 10 seconds before the page starts loading.  It seems like IIS goes to sleep after a certain period of inactivity, or that something is being re-cached server side after a certain timeout.

I'm wondering if there is some 'keep alive' setting or something of that nature to combat my 'inital hit delay' problem.  If I can't solve the problem, my workaround is to create a windows application that's only function is to periodically load my website.  Wouldn't that be a hoot!

Also, I'm testing this on a LAN to rule out any internet influence.

Thanks in advance!
Avatar of sgstuart
sgstuart

Hi colemaj1,
     Are you using Com objects in this?  My guess is yes, and if you are using .Net stuff it may just be related to that in the Component Services Section anyway.

So you will want to go to your Compent Services and then go to Computers, My Computer, COM+ Applications.   Under here you will have many packages.   In these packages items can be set to do things after a certain length of time.  Under the Properties section of each item you can go to the advanced tab, and under there you can either change the idle time length to something much greater or have it never shutdown.    Since you seem to be experiencing a problem after a certain amount of time, that should be the current time in there.  You can also look at those items to see which ones start running when you hit the site.  Make sure that it has timed out first to do that testing though.

     Another possibility is that it is a Web Site setting, but based on what you said I do not think so, this would only affect a machine usually, not everyone.  So you should make sure that it is not just the initial loading of items on to a machine.   So here is what you change under the Web site itself.  Go to its propertied under IIS, and then select the "Web Site" Tab and you will see a Connection Time Out there.  This number can be increased.   Also under  Home Directory Tab and under the configuration button there.  You will see the Options Tab, under there you will see 2 options that can be changed  'Session timeout' and  'ASP Script Time Out'.    These can also be directly in a web page or website configuration file.

Thanks,
Steven Stuart
ASKER CERTIFIED SOLUTION
Avatar of Dave_Dietz
Dave_Dietz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of colemaj1

ASKER

Steven, I tried your suggestions, but it did not solve the problem.  I'm going to try Dave's and see how it goes.
Dave, that worked great.  Thanks!