Add support for Auto-Start on .NET 4

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
4/28/2010 10:12:58 AM
Gravatar
Total Posts 3

Add support for Auto-Start on .NET 4

.NET 4 now support ASP.NET auto-start (warm up). It would be nice if mojo would support it (users would need to configure their server to support it too).

See: http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx for details

5/1/2010 11:53:17 AM
Gravatar
Total Posts 18439

Re: Add support for Auto-Start on .NET 4

Hi,

It can be done in server configuration. mojoPortal doesn't need to do a lot of expensive setup, so we really don't need to use the custom pre-load logic illustrated in the article.

Really the biggest problem is for low traffic sites where requests don't come in frequent enough and by default IIS will shut down the app after a period of no requests, then when a request finally comes in it needs to do all the JIT compiling again so the few users who visit get a slow site experience. Once the user clicks around a few pages all the JIT compiling is done and the site is much faster so a site that gets consistent traffic preforms much better. I'm not really sure the IIS warm up solves this problem, it seems to mainly be for large high traffic sites where there is a lot of setup needed when the app first starts.

In mojoPortal we have a low fi solution for the low traffic slow site problem where you can configure an AppKeepAlive task that starts a background thread that makes web requests to the site often enough to keep the timeout from happening so the site is not shut down by IIS.

Best,

Joe

5/1/2010 1:07:18 PM
Gravatar
Total Posts 3

Re: Add support for Auto-Start on .NET 4

Thanks for the reply Joe. I'll look into AppKeepAlive.

I'm guessing that it doesn't prevent pool recycle, right? Only prevents automatic unload of the app by ASP.NET engine?

5/3/2010 11:55:16 AM
Gravatar
Total Posts 18439

Re: Add support for Auto-Start on .NET 4

Hi,

Yes, anything that forcefully recycles the app pool will kill the background thread as well. But when the app restarts after getting its next request the keep alive task will be started again from the Application_Start event.

The background task simply makes web request often enough to keep the timeout from happening that would cause IIS to shut down the app. ie it makes a web request on a frequency slightly shorter than the session timeout period so that there is always at least one active session.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.