The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security and Performance FAQs
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sat Mar 31, 2012 4:25 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 4:13 pm
Posts: 8
Hi there, in the last two weeks my site has started to be throttled quite a bit, I haven't added any new extensions or plugins to my site in this time, only new articles. I've repaired and optimzed my database and yet I am still getting slow mysql queries and my site is being throttled by my hosts.

Can anyone help me out with what might be causing the problems??

Code:
# Sat Mar 31 04:00:09 2012
# Query_time: 1.071787  Lock_time: 0.001387 Rows_sent: 10  Rows_examined: 8477
use ;
SELECT DISTINCT
  cats.title AS cat,
  users.username AS author,
  cats.section AS SID,
  content.title AS title,
  content.introtext AS text,
  content.created AS date,
  content.publish_up AS date_publish,
  content.images AS images,
  content.id as IID,
  CASE WHEN CHAR_LENGTH(content.alias)
  THEN CONCAT_WS(":", content.id, content.alias)
  ELSE content.id END as ID,
  CASE WHEN CHAR_LENGTH(cats.alias)
  THEN CONCAT_WS(":", cats.id, cats.alias)
  ELSE cats.id END as CID                
  FROM
  jos_content AS content
  LEFT JOIN
  jos_categories AS categories
  ON categories.id = content.catid
  LEFT JOIN
  jos_sections AS sections
  ON sections.id = content.sectionid
  LEFT JOIN
  jos_menu AS menu
  ON menu.componentid = content.id
  LEFT JOIN
  jos_users AS users
  ON users.id = content.created_by
  LEFT JOIN
  jos_content_frontpage AS frontpage
  ON content.id = frontpage.content_id           
  LEFT JOIN
  jos_categories AS cats
  ON content.catid = cats.id    
  WHERE
  content.state = 1
  AND categories.access <= 0
  AND content.access <= 0
  AND categories.published = 1 
  AND ( content.publish_up = '0000-00-00 00:00:00'
  OR content.publish_up <= '2012-03-31 10:00:06' )
  AND ( content.publish_down = '0000-00-00 00:00:00'
  OR content.publish_down >= '2012-03-31 10:00:06' )
  AND (  content.catid = 67 )
  ORDER BY
  content.created DESC
  LIMIT
  0,10



# Sat Mar 31 04:28:44 2012
# Query_time: 2.387125  Lock_time: 0.000258 Rows_sent: 5394  Rows_examined: 27327
use ;
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.attribs, a.hits, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, cc.title AS category, g.name AS groups, u.email as author_email FROM jos_content AS a INNER JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE a.access <= 0 AND s.id = 1 AND s.access <= 0 AND cc.access <= 0 AND s.published = 1 AND cc.published = 1 AND a.state = 1 AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2012-03-31 10:28:41' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2012-03-31 10:28:41' ) ORDER BY  a.created DESC



These are the queries that are re-occuring and causing the problems, or could be it be a simple fact that the traffic to my site is outgrowing my current shared hosting??

Thanks for any help in advance


Top
 Profile  
 
PostPosted: Sun Apr 01, 2012 12:03 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Apr 01, 2012 11:14 am
Posts: 2
I've had site offline for 30 mins to 2 hours daily and my host also stating due to throttling - although happens whether or not I add new articles. Only getting a little over 200 visitors daily - often lower 'cos the can't access site. All my host suggested was...
The following website covers some things that you can do optimize your Joomla installation. The version you have might not be the same that is listed, but the information that go over still should be of use.
http://www.siteground.com/tutorials/web ... omla15.htm
don't know if this any help to you but maybe some use. (BTW what host do you use, is it Bluehost?)


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 7:48 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 4:13 pm
Posts: 8
Thanks for the link. I'll have a read of that.

Yep I am with Bluehost


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 10:31 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 4:13 pm
Posts: 8
Ok so I went through and optimised my site and yet I am still having the same problem, can anyone shed any light on this for me or give me some more things to check on???


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 12:33 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Aug 11, 2008 3:05 pm
Posts: 459
It doesn't seem like you have a lot of articles, so perhaps the server is a little overloaded. Have you tried using the system cache plugin? That would eliminate both of those queries unless you are building the page.


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 12:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 4:13 pm
Posts: 8
I update my site with new articles about every 5-15 minutes, so the cache would stop those from showing straight up wouldn't it??


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 1:11 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Aug 11, 2008 3:05 pm
Posts: 459
Yes and no. If you are adding a new article then that page is cached. If you are modifying existing articles then you need to clear those cached pages. If your menu items are changing then you need to clear and rebuild the pages that use the changed menu.


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 1:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 4:13 pm
Posts: 8
Could it also be that the site is out growing the shared hosting that I have it on, we currently receive between 1500 to 5000 visitors everyday.

I switched on the cache for a few days last week and it made no difference to the site being throttled, any other ideas??


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 1:57 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Aug 11, 2008 3:05 pm
Posts: 459
If you use the system page cache but set the expire time too low so that the pages only get viewed a couple of times it creates more overhead for the server because it needs to generate and then save the page. Here is the method that I use, that makes the cache plugin quicker.
viewtopic.php?f=433&t=549833

You should also follow the recommendations from Google Page Speed. A quicker host would also help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group