100% CPU usage even for a few users

Posted in: Newspaper
Post count: 2

Hi,

I recently launched a new version of my website using Newspaper 7.1.1. This is a clean install and not an upgrade of an older version of the theme. I immediately noticed that even a few (less than 10) visitors are able to rise my server’s processor usage to 100%. My Linux box shows PHP processes as the cause and not the MySQL server. Usage is constantly climbed to 100%. I tried disabling all installed plugins leaving enabled only Visual Composer and the theme. The problem is solved only by disabling the theme and enabling my old one (even with all plugins enabled). It seems like the theme’s code falls in some kind of infinite loop as soon as the first user hits the website.

I am running on a dedicated i7/32GB RAM/SSD server with no control panel, Apache 2.4.10, PHP 5.4.34. I am using the child theme for CSS customization purposes. There no overrides of core templates. In addition I have already installed Comet Cache in order to help my website stay online after the upgrade.

Looking forward to your help,
Thanks

Post count: 22421

Hi,
Please use wp super cache as it;s the recommended caching plugin to use with our theme. Then disable the child theme and use the theme panel for css modifications: http://screencast.com/t/LSt5aXS9
you can also check the system status parameters here: http://screencast.com/t/vkBw4jGU and make sure you increase them according to this guide: https://forum.tagdiv.com/system-status-parameters-guide/
Let us know if you still have trouble afterwards.
Thank you!

Post count: 2

Hi,

I’ve tried your suggestions. I also confirmed that the server requirements are met. In addition, I switched to the main theme (instead of the child one) leaving the theme with its default style.

As my website struggles to stay online using caching, I downloaded it to my development server (no external visits) for more testing and I noticed strange behavior regarding images. I deleted my homepage latest post images only from the filesystem which (as excepted) results in many 404 errors. Then my development server had high CPU usage. I switched to my previous theme and the load is gone. I tried the same experiment when navigating to Admin > Media. When Newspaper was active, I had high CPU load while my browser was trying fetching the deleted files. When switching back to my previous theme, the load was gone and the Media screen loaded instantly. It seems very strange. Browser directly hits Apache requesting static files which normally is the same regardless of the theme used. How this different behavior could be possible when switching themes?

Thanks!

Post count: 6535

Hi

Please address us via email at contact@tagdiv.com with a link to this thread and we will get back to you as soon as possible. In your message please include login details for your site, login details for ftp access and also the error log file from your server.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.