Slow load time

This forum is primarily for reporting issues about Web Accessibility such as difficulty using mojoPortal with a screen reader or other assistive technology.

Post any feedback here related to improving the accessibility or usability of mojoPortal. As stated in our Accessibility documentation, it is an important goal of the project that both the front-end customer experience and the back end administration and content publishing features be accessible to as many people as possible. Ideally, if you post about problems, we will also be glad to have suggestions on how the problems can be fixed but all constructive feedback on these issues is welcome.

This thread is closed to new posts. You must sign in to post in the forums.
6/26/2013 11:15:55 AM
Gravatar
Total Posts 5

Slow load time

Hi

I have extremely slow loading times, i have tried to contact my host provider (surftown.dk), but they could not find anything wrong with the server(s).

The problem is periodic, if i have not used the site in a while the loadtime is about 20-30 sec, if i then refresh (or close down my browser) and try again it loads right away (1-2 sec), my first thought was i had something to do with the local cache, but i am unable to solve this problem anyway.

i have run some tests on this page, http://www.webpagetest.org/result/130626_55_15CG/1/details/

its tells me the csshandler.ashx is the file/class taking all the time to load, to my knowledge( may be wrong) i controls the css files.
i tried generating a new GUID, same problem.

So what is causing this problem, my host or is it mojoportal?

/FidQ


 

6/26/2013 11:17:50 AM
Gravatar
Total Posts 5

Re: Slow load time

Edit: trioxin.dk is the page with the problem.

6/26/2013 11:39:18 AM
Gravatar
Total Posts 18439

Re: Slow load time

Hi,

See this article that explains why it is slow on first startup, especially the part at the bottom about some free services that can ping your site often enough to keep it awake.

Hope that helps,

Joe

6/26/2013 12:28:09 PM
Gravatar
Total Posts 5

Re: Slow load time

Thx for the answer, is it possible that the keepalive function is disabled in the IIS? i don't have direct access to the IIS manager only some web controls and ftp access.

/FidQ

6/26/2013 12:34:37 PM
Gravatar
Total Posts 18439

Re: Slow load time

AppKeepAlive task cannot work in some medium trust hosting environments, they may not allow server side web requests so yes it could be disabled.

But I recommend don't use AppKeepAlive even if it does work, use a free external service as linked in the article. The remote service can make periodic web requests to your site and this will keep it alive better and more reliably than the AppKeepAlive.

6/26/2013 2:33:56 PM
Gravatar
Total Posts 5

Re: Slow load time

hmm don't what it is, but i still got 15 sec of load time on the csshandler.ashx, and its still pretty slow when i try to access the administration page, using the uptimerobot.com service. 

http://www.webpagetest.org/result/130626_CD_1CHH/1/details/


 

6/26/2013 3:24:00 PM
Gravatar
Total Posts 18439

Re: Slow load time

Hi,

csshandler.ashx can be expensive on the first hit because it is combining a bunch of css files and then minifying the combined css. It gets cached on the server and in the browser so subsequent requests should be fast.

I would also review the mojoportal log under Administration > System Log

If you see the application start and end events logged repeatedly in short times it means the application pool is being recycled frequently. This can happen in a low memory hosting environment if the host forces the app pool to recycle when it reaches a certain memory limit. If the app is continually restarting it is usually an indicator that that is happening and this will kill performance.

For the css handler problem there is a way that you could remove it from the load equation. Copy the rendered minified css  output from csshandler.ashx into a new file named style-combined.css and put it in your skin folder.

Then in the style.config file in the skin folder comment out all the files that are there and add one entry for the new combined file.

Then add this in user.config:

<add key="CombineCSS" value="false"/>

recycle the app or touch web.config to reload the above setting.

Now if you view the source it should link directly to the style-combined.css file instead of to csshandler.ashx

​That will reduce the memory usage a little as well so it may help with other problems.

​Hope that helps,

Joe

 

6/26/2013 4:37:04 PM
Gravatar
Total Posts 5

Re: Slow load time

The css trick helped alot, i am down to 3-5 sec loadtime without keepalive service. :)

there is still a little delay, because of the pool restart ( found alot of start and end events in my log) but i think the keepalive service will take care of that problem.
 

Thank you for the help.

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