Have I set AppKeepAlive up properly

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
8/17/2010 3:06:28 AM
Gravatar
Total Posts 116

Have I set AppKeepAlive up properly

I had my first site go live with mojoportal at the end of last week but I'm not sure that the AppKeepAlive is working correctly - the site isn't super slow loading for the first time but it sometime takes around 10-15 secs - once it loads though it is very very fast between pages which makes me think I am doing something wrong there.

I had a look at the error log and this was reported:

2010-08-17 06:06:51,105 ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2010-08-17 06:09:08,105 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-08-17 07:09:03,183 INFO mojoPortal.Web.Global - Application Started.
2010-08-17 07:09:06,058 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-08-17 07:09:06,761 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-08-17 07:09:06,902 INFO mojoPortal.Web.AppKeepAliveTask - Queued AppKeepAliveTask on a new thread
2010-08-17 07:09:07,761 INFO mojoPortal.Web.AppKeepAliveTask - deserialized AppKeepAliveTask task
2010-08-17 07:43:29,027 ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2010-08-17 07:44:49,949 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-08-17 08:31:30,996 INFO mojoPortal.Web.Global - Application Started.
2010-08-17 08:31:33,449 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-08-17 08:31:33,636 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-08-17 08:31:33,761 INFO mojoPortal.Web.AppKeepAliveTask - Queued AppKeepAliveTask on a new thread
2010-08-17 08:31:35,183 INFO mojoPortal.Web.AppKeepAliveTask - deserialized AppKeepAliveTask task

Also have this in my log a few times

2010-08-17 02:11:50,449 ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2010-08-17 02:13:14,808 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-08-17 05:25:38,230 INFO mojoPortal.Web.Global - 程序已开始运行
2010-08-17 05:25:46,511 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-08-17 05:25:46,511 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread

Not sure what the Chinese(?) characters are for or where they have come from? 

Don't have enough knowledge to know whether this means it is working or not - it is certainly running all the time and starting a new thread whenever the previous one shuts down but whether it is doing what it is supposed to.......

I have this in my user.config file

<!-- added to speed up low traffic sites, remove when higher traffic -->
<add key="UseAppKeepAlive" value="true" />
<add key="AppKeepAliveUrl" value="" />

<!-- disable css caching on server and browser whilst testing -->
<add key="CacheCssOnServer" value="true" />
<add key="CacheCssInBrowser" value="true" />

Do I need to set the URL of the homepage in the value?? (running on MS2003 and IIS6.0 on VPS) Or is there anything else I should look at to check the startup speed like the application pool settings?

Regards

Andrew

8/17/2010 7:12:06 AM
Gravatar
Total Posts 18439

Re: Have I set AppKeepAlive up properly

For IIS 6 you should not enter an url for the keepalive.

The AppKeepAlive is making a periodic server side web request of your site home page on a background thread. It does this to keep the site from being shut down by IIS due to lack of traffic.

The error indicates it cannot retrieve the home page url. It is either not able to resolve the host name to the ip address or possibly blocked at the firewall. You'll need to either solve that problem or disable the keep alive.

The application start and a few other things logged are localized by resource files, it just means that a Chinese visitor made the first request that started the application after it was shutdown by IIS because of lack of traffic the first request that came next was a web browser with the language preference set to Chinese so the application start event was logged with Chinese localization

Hope it helps,

Joe

8/17/2010 9:27:07 AM
Gravatar
Total Posts 116

Re: Have I set AppKeepAlive up properly

Hi Joe,

I spent a while looking into this this afternoon as I knew the thread wasn't blocked and my intial checks of the dns seemed fine....... however when I checked in more detail there were problems with the dns not been setup fully so I crash course in dns and a few tweaks later it seems to be working great and mojoportal is delivery the page from startup really really fast even on my pretty low powered server! smiley

Thanks for the event log translation and pointers.

Kind Regards

Andrew

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