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 2254

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 2254

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.

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