PDA

View Full Version : Force ASP.NET applications to keep alive



Ted Husted
08-24-2005, 05:23 PM
In reference to

* http://authors.aspalliance.com/PaulWilson/Articles/?id=12

Has anyone tried these bits with a Spring.WEB application? Or, does anyone have an alternative solution to the problem (lightly used applications go to sleep).

The Wilson solution does seem to be working for us, though after a rebuild, the first time we load the application in *debugging mode*, an exception is exposed:




...

'/LM/W3SVC/1/Root/wqd-8-127693915660156250': Loaded 'c:\windows\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll', No symbols loaded.
'/LM/W3SVC/1/Root/wqd-8-127693915660156250': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\wqd\c4409579\a2939729\oe-icj4h.dll', Symbols loaded.

An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.

An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.

Additional information: Object reference not set to an instance of an object.

The program '[3160] aspnet_wp.exe: DefaultDomain' has exited with code 0 (0x0).
The program '[3160] aspnet_wp.exe: /LM/W3SVC/1/Root/wqd-8-127693915660156250' has exited with code 0 (0x0).



Since the extension is trying to "walk the web", and we are using Spring templates and all that, it occured to me the exception might be a Spring.Web issue.

We can continue past the error in the debugger, and the exception is *not* exposed in production mode. So, the issue is not a showstopper for us. Though, I'd like to keep our applications alive without continuing past a debugger exception every day :)

-Ted.

Rick Evans
08-31-2005, 12:03 PM
Just created a JIRA entry to track this issue.

http://opensource2.atlassian.com/projects/spring/browse/SPRNET-177

Aleks Seovic
10-21-2005, 04:31 AM
I'm thinking whether we should build keep alive functionality, as well as related precompilation features into Spring.Web.

I really don't like the idea of Spring context being unloaded and reloaded just because ASP.NET thinks that application should be shut down when there are no requests coming in.

Precompilation is just a nice add-on that would be most useful for load testing, but it's relatively simple thing to add.

What do you guys think?

- Aleks