Joomla 3x CPU 100% usage, need advice.

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
pacowilson
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Fri Feb 03, 2012 8:54 am
Contact:

Joomla 3x CPU 100% usage, need advice.

Post by pacowilson » Mon May 12, 2014 3:11 pm

Hey guys.

I really like the joomla. It's very easy to build gorgeous customized websites with this Open sources platform. I chose the joomla to build my business website from Joomla 1.5.

Past two years ago, we upgraded the joomla 1.5 to joomla 1.6, then joomla 2.5. We moved the shared hosting to business hosting, it runs good. The average loading time is 3 - 4 seconds.

Just few months ago, I decided to upgrade the joomla 2.5 to joomla 3. Well, suddenly, we realized the joomla 3 with clean code, but we experience huge problem. When the users reach up to 20, the hosting CPU usage 100%. Especially, when googlebot is crawling our website.

We need advice, please help me.

(Please note that we use the jcache, and JCH Optimize Pro, enabled cache plugin, as well as free CDN cloudflare. If you want to see our website, please see below signature.)
Design & sell wireless alarm system based on GSM, no monthly fee. http://www.hkvstar.com

pacowilson
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Fri Feb 03, 2012 8:54 am
Contact:

Re: Joomla 3x CPU 100% usage, need advice.

Post by pacowilson » Sun May 18, 2014 1:19 am

Updates:

Finally solved the problem.
We are using the older version of PHP which is PHP5.3.28, after we upgrade the version to PHP5.4. The CPU usage drops significantly.

If you want to know more about the performance between two, you should check this article:
https://www.lourdas.name/blog/php-53-vs ... mory-usage

Ps: Upgrade php version for Cpanel users
Go to [Select PHP Version] > Choose the version you need to upgrade (either 5.4 or 5.5) > Click [Set as current] > done.

Please note that you need to look for the default modules carefully, mysqli (must be ticked).
Design & sell wireless alarm system based on GSM, no monthly fee. http://www.hkvstar.com

aelsharawi
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed May 28, 2014 12:53 am

Re: Joomla 3x CPU 100% usage, need advice.

Post by aelsharawi » Sun Jun 22, 2014 8:17 am

I had similar problem,however I disabled jch optimizer (website is much faster with cloudflare alone (using max optimization))

but still have this cpu load,and I/O load:

Im using php 5.5 with apc cache for joomla.

please advise "I know that apcu is not yet fully compatible with joomla 3.3"

what shall I do ?

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Joomla 3x CPU 100% usage, need advice.

Post by itoctopus » Mon Jun 30, 2014 4:00 pm

A few questions:

- How many articles do you have?
- Are you on a shared hosting or a VPS? You should be on a VPS.
- Have you checked the slow query log to see if there are any queries that are causing this problem?

It might be that the migration to 3.3 was botched somewhere, and that is causing all these issues.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

technicaldk
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Wed Jul 23, 2014 6:43 pm
Contact:

Re: Joomla 3x CPU 100% usage, need advice.

Post by technicaldk » Thu Jul 24, 2014 12:25 pm

If you are on a shared host most likely if you have 20 current connection (EP) you would reach the CPU limit. Maybe you should ask host to add more CPU resources to your account or switching to a VPS.

josesmith886
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Fri Oct 03, 2014 4:19 am

Re: Joomla 3x CPU 100% usage, need advice.

Post by josesmith886 » Thu Oct 09, 2014 10:30 am

Latest update:

Just back to several days ago, my hosting provider shutdown my VPS, due to the DDOS attack. After I moved to another environment, my website load speed was still relative slow (I have tried all suggested methods including installation of plugin, and cache component), when online users reached up to 12, the CPU usage surged up to 100% usage. Fortunately, I have found the problem.

1. Enable the debug mode, check the database queries, it showed 240 duplicate queries errors.
2. Install another template from different company, my website load in 1.5s.

josesmith886
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Fri Oct 03, 2014 4:19 am

Re: Joomla 3x CPU 100% usage, need advice.

Post by josesmith886 » Thu Oct 09, 2014 10:35 am

This is the pingdom test report for my site.

For the duplicate queries, I also posted another thread:
http://forum.joomla.org/viewtopic.php?f=706&t=860981
You do not have the required permissions to view the files attached to this post.

johnyaz
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sat Oct 11, 2014 12:36 pm
Contact:

Re: Joomla 3x CPU 100% usage, need advice.

Post by johnyaz » Sun Oct 12, 2014 6:19 am

Thank you for the solution


Locked

Return to “Performance - Joomla! 3.x”