blah blah blah is here! blah blah » Close

up0down
link

Is there anyway to keep an aspx page/site in memory on the server at all times? When you hit a site for the first time on the server, it starts the JIT compiler and puts the site in memory, but then after 10 minutes, the site gets flushed out of memory and then the client has to wait the extra 10-15 seconds for the site to load.
Anyway to speed up the process??

last answered 2 years ago

1 answers

up0down
link

You need to set processmodel timeout and idletime attributes values in your machine.config to infinate. And if you are using IIS6.0 then use IIS 6.0 config to set the idletimeout property instead of updating machine.config. And in order to speed up the process, you cache object to cache static (or least updated items) items/controls on your pages.

up0down
link

Follow this link, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondevelopinghigh-performanceaspnetapplications.asp
Search for "Recycle processes when running ASP.NET Web applications on Internet Information Services 5.0". On that page.

up0down
link

Thanx Govinda, I'll keep you posted on whether this solution works on my machine.
And yes, I am running IIS 6 on my server (win2k3).

up0down
link

Where in IIS 6 do I make these changes?? I looked through properties of the site and can't find anything expect for Session State which doesn't help.

up0down
link

Wait, found it:
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconperformanceapplicationpoolsettings.asp?">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconperformanceapplicationpoolsettings.asp</a>

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback