Slow Start Up / Keep Alive

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/9/2010 7:12:40 AM
Gravatar
Total Posts 116

Slow Start Up / Keep Alive

Hi,

I am doing some work at getting a site ready which will be using mojo portal and have hit a bit of a snag.  The problem is that the app is idling so when I log in after a long period it takes quite a while to fire up.  Once it does all is fine.  I had read the docs before I started so add the keep alive the the user.config file but here is the log straight out of the mojo portal admin system logs:

2010-07-07 22:17:20,154 ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2010-07-07 22:19:10,326 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-07-08 18:54:07,592 INFO mojoPortal.Web.Global - Application Started.
2010-07-08 18:54:13,732 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-07-08 18:54:14,076 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-07-08 18:54:14,217 INFO mojoPortal.Web.AppKeepAliveTask - Queued AppKeepAliveTask on a new thread
2010-07-08 18:54:15,060 INFO mojoPortal.Web.AppKeepAliveTask - deserialized AppKeepAliveTask task
2010-07-09 04:43:55,951 ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2010-07-09 04:44:49,388 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-07-09 13:04:25,998 INFO mojoPortal.Web.Global - Application Started.
2010-07-09 13:04:50,904 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-07-09 13:04:50,920 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-07-09 13:04:51,029 INFO mojoPortal.Web.AppKeepAliveTask - Queued AppKeepAliveTask on a new thread
2010-07-09 13:04:51,560 INFO mojoPortal.Web.AppKeepAliveTask - deserialized AppKeepAliveTask task
 

Now this might not be a problem once the site goes live (not accessible via dns at the moment) as traffic might keep it going although I do not expect it will be a high traffic site - have I done something wrong with setting it to stay alive or do I need to change something else?  Once the app kicks back in the site works fine and is nice and quick but just want to overcome that initial lag.

Regards

Andrew

EDIT - rather than start a new post on this I also have a question about the blog feature.  I have put a blog module on the homepage for news and put it in the right hand column, used the excerpt options and it looks exactly as I wanted it to on the homepage.  The problem I have is that when you click the read more... link it opens the full post but looks like it is still being contained with the right hand column on the post page and not using the full extent of the page - can I get round this or would I need to create the full page and then manually create a shorter blog post and create a link to the page in the entry?  The other problem I am having is that I can't assign a category to a post, if I click the Add Category button nothing seems to happen, if I click the edit category link I can see categories I have added tho??

2nd EDIT - I added a blog module to another page and added a category before any posts - this show up fine and can be ticked.  Again though clicking the Add Category button does not seem to do anything.  Also there is a categories text box, is this used for creating the tag cloud?  I think some of these problems are down to my misunderstanding how a few bits work....

 

The other thing that threw me for a little while there was why the blog posts were using American times instead of UK ones - until I realised that when I logged out they appeared as UK time - quick user profile check sorted that out! laugh

7/9/2010 12:41:44 PM
Gravatar
Total Posts 18439

Re: Slow Start Up / Keep Alive

Hi,

Please, it would help us keep things organized and make it easier for others to find answers to the same questions if you ask one question per thread and  use the appropriate forum for your question. This is the developer forum, as the description says it is for discussing working with the source code in Visual Studio. I will answer your first question here though it would have been a better fit for the Installation forums since it is a configuration question. Please start a new thread in the "Questions about Site Administration" forum and ask your blog question there.

If your site does not resolve from DNS then you should wait until after DNS is setup before you enable the AppKeepAlive. It makes a server side web request to your home page often enough to keep your site awake, but if it can't resolve the DNS it will just timeout as your error indicates.

As indicated in the AppKeepAlive documentation, if you are hosted in IIS 7 with an Integrated pipeline app pool then you need to specify the url for the root of your site. However if your app pool is Classic instead of Integrated, then you need to leave the url blank or it can cause this error.

Hope it helps,

Joe

7/12/2010 3:00:21 AM
Gravatar
Total Posts 116

Re: Slow Start Up / Keep Alive

Hi Joe,

Thankyou for the reply there, I didn't realise how the AppKeepAlive worked, once explained it makes perfect sense (i.e. DNS not setup yet).

Apologies for posting in the wrong forum and I appreciate that this is misleading and makes searching more difficult.

Will repost the blog questions as suggested, in the meantime I can tick this one of the list.

Regards

Andrew

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