Slow startup

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
10/22/2010 4:00:50 AM
Gravatar
Total Posts 65

Slow startup

Hi,

Our site have vary low amount of users, maby 1 a day or less. The problem is that the site is vary slow to start up but when it is up an running it runs fine.

I have checked the AppKeepAlive doc but the question is how big value could I set it to? Is a week to much? I do not really see why it needs to shutdown?

BestRegards

10/22/2010 8:35:58 AM
Gravatar
Total Posts 18439

Re: Slow startup

Are you asking about the value for the application pool timeout?

I'm not really sure how well it works for long periods of time like that, it might be ok.

One thing you could do is keep a computer at home logged into your site with an edit page open like the html content editor. All our edit pages have a session keep alive feature enabled so it keeps making background requests to the site to prevent your session from timing out while editing content. Not the greatest solution but it does keep your app alive because even if the app is shut down the requests from the browser should start it right back up again.

Hope it helps,

Joe

11/19/2010 9:47:21 AM
Gravatar
Total Posts 116

Re: Slow startup

Hi Joe,

I have seen a few people reporting that the app startup 'issue' is made obselete in IIS7 as it handles things differently - is this correct as it might be a good reason for me to upgrade my server from IIS6 if its true?

Cheers

Andrew

11/19/2010 9:58:28 AM
Gravatar
Total Posts 2239

Re: Slow startup

Hi Andrew,

Well, it isn't completely true. IIS 7 is faster than IIS 6 but the JIT compile still takes place and that process is inherently slow. 

There are many other reasons to move to IIS 7+ and I think your site would benefit from them. Not to mention, it is always nicer to upgrade when it isn't a necessity. :-)

Thanks,
Joe D.

11/19/2010 10:11:21 AM
Gravatar
Total Posts 116

Re: Slow startup

Thanks for the clarification Joe and your certainly right in it being a much more pleasant experience to do major upgrades without too much pressure, would also be a good time to upgrade all of the legacy databases from SQL Express 2005 to 2008 - think I will just run 2 servers for a month or so and take the pressure off and block off some time to setup the new server, once the sites are all happily up and running again its a nice easy dns alteration  smiley  

Is moving the couple of sites I have running on Mojo SQLCE simply a case of copying the files over and resetting the permissions being that the db is just a standard file?

Cheers

Andrew

11/19/2010 10:14:44 AM
Gravatar
Total Posts 2239

Re: Slow startup

Your plan sounds exactly like what I would do.

Yes, moving a mojo SQLCE site is only a matter of moving the files and setting the proper permissions. Of course, you have to have .NET 4 on the new machine, but you know that. ;-)

HTH,
Joe D.

11/19/2010 10:23:54 AM
Gravatar
Total Posts 116

Re: Slow startup

Thanks Joe.

If the appKeepAlive issue persists on the new server (working round it with a longer app timeout and website monitor software at the moment) I'll give you a shout to take a look at it :-)

11/19/2010 12:44:30 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Slow startup

Just to give you a frame of reference, we are running Windows Server 2008 R2 (IIS 7.5) on a quad CPU Intel Xeon 5550 server with 16 GB of RAM. After app pool timeout, or making a change to the web.config file, our initial page load time is approximately 2.5 seconds.

Jamie

11/19/2010 4:29:14 PM
Gravatar
Total Posts 116

Re: Slow startup

That's some seriously specced server Jamie! surprise

Mine is at the opposite end of the scale I think although once the mojo app is running the sites are still very quick to navigate and a credit to the quality of the mojo coding efficiency even on a very low spec server ~ 1GHz, 512MB RAM etc.  Will probably upgrade the spec a bit with the new server tho :-)

3/21/2012 4:09:21 PM
Gravatar
Total Posts 65

Re: Slow startup

Hi,

We do still got this problem. How do we solve it?

Its really bad looking that it take 5-8 sec to startup. When its running its fast.

To have a program pooling the website feels just as a ugly hack.

3/21/2012 4:21:59 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Slow startup

As Joe said, you can try setting the application pool timeout value to 24 hours, maybe... That way the startup delay will only happen to one visitor per day at most, and only if they are the first visitor in the last 24 hours.

Ultimately the most satisfying solution would probably be to boost your site's visitors so the app pool timeout never happens.

3/21/2012 4:49:50 PM
Gravatar
Total Posts 18439

Re: Slow startup

I'm not a fan of the AppKeepAlive task myself. I think using a free service like  UptimeRobot is a much better way to keep your site awake. Pingdom also can be used for free for 1 site.

I would disable the AppKeepAlive and use one of these.

It can help to ping more than just your home page, pinging pages that have different features on them is helpful to make sure everything is compiled.

It can also help to remove resx files for languages you are not using from the /App_GlobalResources folder and remove extra skins that you are not using.

Hope that helps,

Joe

3/22/2012 2:48:02 AM
Gravatar
Total Posts 65

Re: Slow startup

Per default the apppool will be recycled every 29 hour(Regular Time Interval) and this is something the solution have to manage if the idea is to have a 24/7 uptime.

I supose that you are refering to the Idle Time-out(minutes) properti of the appPoool?

Right now it feels like it is only a couple of hours until the site shutsdown.

I have built some websites myself and never runned in to this problem, yes if the site have cached data there will be a hit every once in a while but in my cases it have maby been once a week.

The pingdom maby is a solution but it only feels temporary.

To encreas the amout of users of the webpage is not that easy when its only member that bought our software that can enter it.

3/22/2012 1:10:16 PM
Gravatar
Total Posts 18439

Re: Slow startup

Hi,

I supose that you are refering to the Idle Time-out(minutes) properti of the appPoool?

Yes, by default that is 20 minutes so after 20 minutes of no requests to your site IIS will shut down the app which means on the next request it has to compile again causing the slow initial startup again. The main reason for using something like uptimerobot or pingdom is to make sure it gets requests more frequently than the idle timeout to prevent the app from being shut down by IIS.  So setting the idle timeout to a much higher value would help a lot, then maybe no pinging service is needed to keep it awake, but it still wouldn't hurt since it will also shut down according to the Regular Time Interval.

Hope that helps,

Joe

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