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.
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.