.NET Forum / ASP.NET / General / February 2006
One last question about ASP.NET 1.1 application recycling, load time and other boring stuff
|
|
Thread rating:  |
Ravi Ambros Wallau - 15 Feb 2006 17:52 GMT Dear friends: This is my third question on this news in three days... Sorry for this spam behavior :-) I've a lot of problems on "first page load" after some change on web.config or even in the contents of bin folder... Nathan Sokalski passed me a link to ILMerge library, I've made some tests grouping a set of DLL's that are loaded without reflection, but there were no improvements on load time. I've noted that ASP.NET copies all assemblies that are on bin folder to the Temporary ASP.NET Files, located on Framework folder under Windows folder. I don't know why ASP.NET does that, but whatever, I think that this behavior cannot be modified. My question is: When using ASP.NET 1.1, is there some automatic recycling behavior? My pages are not changed often. But we have the impression that, once or twice in a day, the time took to load a page is heavily increased, even if this page has no great processing on this operation... Am I missing something? ASP.NET does this for any reason?
Thanks,
 Signature Ravi Wallau nospam@nospam.org
Darren Kopp - 15 Feb 2006 18:29 GMT If your app is running on Server 2000 or Server 2003 (I believe it's both, 2003 for sure), run the Internet Information Services Manager (inetmgr), go to the application pool in which the application is running, right-click and select properties.
Now you want to check out the Recycling and Performance tabs. I am guessing that under Performance, your Idle Timeout is checked and set to something like 20 minutes. If your app is idle for more than that time, it is closed, and when a new request is sent, your application is reloaded.
You might want to just uncheck it, or set it to a larger amount of time.
HTH, Darren Kopp http://blog.secudocs.com/
Juan T. Llibre - 15 Feb 2006 18:32 GMT re:
> If your app is running on Server 2000 or Server 2003 > (I believe it's both, 2003 for sure) Yes, 2003 for sure, but not 2000.
W2K runs IIS 5.0, which doesn't use Application Pools.
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
> If your app is running on Server 2000 or Server 2003 (I believe it's > both, 2003 for sure), run the Internet Information Services Manager [quoted text clipped - 13 lines] > Darren Kopp > http://blog.secudocs.com/ Ravi Ambros Wallau - 15 Feb 2006 18:44 GMT So, is there such behavior on W2K?
> re: >> If your app is running on Server 2000 or Server 2003 [quoted text clipped - 26 lines] >> Darren Kopp >> http://blog.secudocs.com/ Juan T. Llibre - 15 Feb 2006 18:59 GMT I'm not sure what you mean by "such behavior", but I can guarantee that Application Pools don't exist under W2K ( under IIS 5.0 ).
Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
> So, is there such behavior on W2K? >> re: [quoted text clipped - 26 lines] >>> HTH, >>> Darren Kopp Ravi Ambros Wallau - 15 Feb 2006 19:11 GMT I mean recycle the application if it's idle...
> I'm not sure what you mean by "such behavior", but I can guarantee > that Application Pools don't exist under W2K ( under IIS 5.0 ). [quoted text clipped - 34 lines] >>>> HTH, >>>> Darren Kopp Darren Kopp - 15 Feb 2006 19:23 GMT I don't know if this would apply to Windows 2000, but there is a section in the web.config that you can change the process recycling. I don't know if it defaults to something or not, or if IIS overrides it. A blind guess at best, but hopefully one that helps.
<configuration> <system.web> <processModel timeout="60" /> </system.web> </configuration>
HTH, Darren Kopp http://blog.secudocs.com/
Darren Kopp - 15 Feb 2006 19:06 GMT Thanks for the info, I don't have access to 2000 server so i couldn't check myself.
-Darren
Ravi Ambros Wallau - 15 Feb 2006 18:40 GMT I don't see nothing like this on Windows 2000 or Windows XP computers... Is there a configuration to do such thing on these servers? Or is it "obscure"?
> If your app is running on Server 2000 or Server 2003 (I believe it's > both, 2003 for sure), run the Internet Information Services Manager [quoted text clipped - 13 lines] > Darren Kopp > http://blog.secudocs.com/ Darren Kopp - 15 Feb 2006 19:10 GMT I know the application pool isn't on Windows XP, and Juan has said that it's not on 2000, so you may need to look to another cause.
Try adding some code in the Application_BeginRequest event that logs when it is invoked, to see if your application recycling is actually your problem.
For future posts, what is the website being hosted on? Server 2000, 2003, or Windows XP?
-Darren
Ravi Ambros Wallau - 15 Feb 2006 19:20 GMT All... Windows XP for development, both 2000 and 2003 for production servers...
>I know the application pool isn't on Windows XP, and Juan has said that > it's not on 2000, so you may need to look to another cause. [quoted text clipped - 7 lines] > > -Darren Matt Towers - 24 Feb 2006 00:15 GMT I'm not sure if this will help you out or not, but the process model for IIS5 is different than that of IIS6. The configurable parameters are basically the same but there are some subtle but significant differences. There's a pretty good discussion on the topic here:
http://www.yeyan.cn/WebDesign/IISProcessModels.aspx
Also, make sure you have the debug attribute of the compilation elelement in your web config set to false.
<compilation defaultLanguage="c#" debug="false" />
http://msdn2.microsoft.com/en-us/library/s10awwz0.aspx
-Matt
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|