- Posts: 168
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Page load bottleneck fao Fotis - re twitter conversation
Page load bottleneck fao Fotis - re twitter conversation
- bunglehaze
-
Topic Author
- Offline
- Elite Member
Basically the site on an empty cache takes a few seconds to oad as expected, after this is is sub 1 second here, click to my main category page and it stays a few seconds which is still a little slow. Then you go into a sub category and the load slows right down, testing on webwait with an average 5 cycles shows:
Homepage - contains tons of modules, content articles and other goodies average= 2.10seconds
Child category page, perhaps 6 articles loading, not image intensive, average= 37.09seconds
The site in question is:
bikechatter.co.uk/index.php
Main category in its current guise is:
bikechatter.co.uk/articles.html
And finally a child category can be viewed at:
bikechatter.co.uk/articles/motorcycle-site-news.html
What is equally odd here though is that loading articles directly is as quick as expected so logically I have been looking at child categories being the issue.
One thing I have had a lot of problems with is the RSS feeds timing out or returning as html pages, I am guessing that this might be linked somehow. As you can probably see from the site there is a lot of content, most of it has been carefully optimised to keep loading times low but I just cannot figure where the hell this speed issue is coming from or how to counteract it - if you want a login creating please let me know - hopefully it is something you have seen before or an obvious issue others might get a fix for - I am at the end of my tether trying to figure the source.
Cheers
Leigh
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
leigh :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
1. All 3 pages load at around 12-13 seconds which is normal for this amount of content for a site (and considering it's probably on shared hosting or some small VPS, right?)...
2. There is a 1.6-2 seconds lag from the server to start serving content
3. You have waaaaaay too many CSS files. Try grouping them into one. Same for JS files.
4. If there is no user input for content in the frontend (I'm not referring to contact forms etc.), you should enable Joomla's cache and set it around 15 mins, make sure ALL modules have the caching option set to "Global" and finally enable the system plugin called "Page Cache" (in its settings, use 2-3 mins for expiration and set browser caching to OFF). These steps will significantly improve the performance of your site.
Other things to take into consideration...
- If your category tree is too deep (e.g. 4,5,6 or more levels) and you got over 1000 articles in your site, make sure that your menu items set for fetching content from multiple categories have these categories "selected" by hand (in the menu item settings). That way, K2 knows exactly which categories to fetch (as you've explicitly selected them) and it does not do recurring queries to fetch content. Same goes for mod_k2_content. Additionally, upgrade to SVN 2.5. A small fix in the K2 router improved performance up to 500% on sites with more than a handful of articles.
- If you are on a shared hosting plan or VPS, there is always a chance the host machine's resources are consumed by some other site or VPS respectively ;)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
With this being a dedicated server would you say performance is lower than you would expect in server lag? I always find a lag of a couple of seconds prior to loading a page on this site but as a comparison one of my clients sites - fishmansfrags.co.uk/ does not suffer the same issue and after caching is lightning.
Css files, I am running through them all as I go along but this is something I am trying to do.
Javascripts - not really sure how I can do this as I tried in the past but ended up causing more issues than it would have caused, this is one reason I really wish Joomla would have just stuck with a unified JS library as I have jquery, joms.jquery (why they had to use their own version I will never know) and now the super bloated mootools 1.2 to add to all the minor scripts the components and modules load.
Frontend cache is turned on in Global Config, and I would prefer to enable page cache too (how do you limit the expiration time as I can only see a setting for browser cache in the plugin?)
The category tree is indeed setup to pull individual categories as found this sped up matters over the latest items setting - I will give the 2.5 SVN a go as I have seen others say it has really improved speed, obviously my main concern was keeping the site running as stably as possible.
One final thing, I have a pro license for SIG Pro and have it installed to handle image galleries but actually run another plugin called SIGE above it in the plugins list as it handles watermarking on XL images - is watermarking something you are likely to add to SIGPro? Or should I continue with the alternaive??
Thanks for taking the time to look at it for me.
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
If I move it within my 'site galleries' category it slows a little but nothing like that of the main 'articles' category so it seems to me that the like from main to sub category is perhaps slow on my site at least and for whatever reason I cannot see.
For obvious reasons the main category and all of its subcategories have been listed and linked together and need to stay this way though I can easily take all the child categories out, list them as main categories and get the performance back but this leaves a headache of how then to display and link all the categories manually on one page (I hope you understand what I mean here as it is a little jumbled I'm sure)
Regards
Leigh
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
Right the system I had in place was to use
Articles >
Motorcycle News >
Product Releases >
General Articles >
And so on.... Having the articles nested is not the issue here as I have now found out - the issue, causing me ALL my problems it seems is the inherit parameters from setting which was originally set as Motorcycle News simply because the Articles category has a totally different layout.
I moved the inherit parameters from setting to Product releases - still slow... So I koved it back to one of the image galleries and it is fast - very fast, the only difference as far as I can see with the two categories is that one has a handful of articles and the other hundreds - lightbulb!
Ok so for the 3 most popular categories on the site (listed above) I have kept them nested within the main articles category but set inherit parameters from to NONE, result = fast loading categories. This is not 100% ideal as it means now I have 3 categories to setup whenever I make changes so if any of you genius bods at JW can figure out how to negate the performance hit created in this way I am open to suggestion, for now the site loads fast so I am loathe to fiddle any more today, I even went back to the original layout and split css files in my template to at least get to the bottom of it - at least now I can streamline the whole thing again.
regards
Leigh
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
Just to see if it will be faster without it.
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
bunglehaze said:
Hopefully finally...
Right the system I had in place was to use
Articles >
Motorcycle News >
Product Releases >
General Articles >
And so on.... Having the articles nested is not the issue here as I have now found out - the issue, causing me ALL my problems it seems is the inherit parameters from setting which was originally set as Motorcycle News simply because the Articles category has a totally different layout.
I moved the inherit parameters from setting to Product releases - still slow... So I koved it back to one of the image galleries and it is fast - very fast, the only difference as far as I can see with the two categories is that one has a handful of articles and the other hundreds - lightbulb!
Ok so for the 3 most popular categories on the site (listed above) I have kept them nested within the main articles category but set inherit parameters from to NONE, result = fast loading categories. This is not 100% ideal as it means now I have 3 categories to setup whenever I make changes so if any of you genius bods at JW can figure out how to negate the performance hit created in this way I am open to suggestion, for now the site loads fast so I am loathe to fiddle any more today, I even went back to the original layout and split css files in my template to at least get to the bottom of it - at least now I can streamline the whole thing again.
regards
Leigh
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
BBC said:
Try to disable Joomla´s mtupgrade mootools plugin. (System - Mootools Upgrade)
Just to see if it will be faster without it.
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
I noticed slow down in some of my pages when i activate mtupgrade. Some problems that i coudn´t see in Firebug or Yslow.
Joomla works that way, plugin cache is disabled for logged in users. So that you experiencing between visitors-logged is normal, i believe.
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
BBC said:
You write that about users after my comment.
I noticed slow down in some of my pages when i activate mtupgrade. Some problems that i coudn´t see in Firebug or Yslow.
Joomla works that way, plugin cache is disabled for logged in users. So that you experiencing between visitors-logged is normal, i believe.
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
Never mind. Anyway , all tools show that you don´t have many IP Neighbours. Max 16, as i could see. So you know it is now problem with server.
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
The differences between visitors and users I thought only came into effect with the page cache turned on, I have had mine turned off this whole time in order to get to the bottom of the loading times issue, the whole damn problem is baffling and annoying as my articles database grows every day and I am sure the loading times increase as they do..
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
As it is your server check all server logs.
Check your .htacces file, if you have one. To much tweaking in .htacces can slow down page extremly, despite it doesn´t throw out some error messages.
I see you don´t have GZIP activated. Activate it at server, or in Joomla, not both. Your problem is huge, so it will help a little bit maybe.
You have expire headers for everything. This page should fly.
I have just 2 questions:
- Do you update K2 via Joomla installer, or just overwrite files at server ?
- Doe´s your internet provider knows you are using line for hosting ?
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
RewriteCond %{HTTP_HOST} ^www.bikechatter.co.uk$ [NC]RewriteRule ^(.*)$ bikechatter.co.uk/$1 [R=301,L]
# Turn off eTagsHeader unset ETagFileETag none# Check that the expires module has been installed<IfModule mod_expires.c>ExpiresActive OnExpiresDefault "access plus 10 years"ExpiresByType image/gif "access plus 10 years"ExpiresByType image/jpeg "access plus 10 years"ExpiresByType image/png "access plus 10 years"ExpiresByType text/css "access plus 10 years"ExpiresByType text/html "access plus 1 seconds"ExpiresByType text/javascript "access plus 10 years"ExpiresByType application/x-unknown-content-type "access plus 10 years"ExpiresByType application/x-javascript "access plus 10 years"
Gzip is activated in Joomla backend and is used on the server but for some reason I do not understand it does not seem to gzip a lot of files it should (according to firebug and pagespeed)
As you say with expires headers and the way the site is generally setup it should be rapid and on a lot of pages it is - apart from my nested categories with over a hundred articles in each, this SHOULD not cause an issue in K2 so something is not playing ball.
Answers to you Q are:
I only ever update my sites manually with file overwrites using a root access sftp
I am not sure what you mean by this? If I understand correctly though - I do not host the server on my personal ISP, the server is based in a US datacentre and is a fully managed package so there should be no issues with the tech.
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
Can not be sure, because K2 has not ordinary changelog. Or i could not find it.
If you have many tweaks outside template override just use Winmerge and set it all back, if it goes that way.
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
- Posts: 663
www.leewillis.co.uk/gzip-joomla-tips-faster-website/
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
Leigh
Please Log in or Create an account to join the conversation.
- bunglehaze
-
Topic Author
- Offline
- Elite Member
- Posts: 168
community.getk2.org/forum/topics/still-seeing-massive
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Page load bottleneck fao Fotis - re twitter conversation