-
AuthorPosts
-
June 26, 2021 at 7:27 pm #1307529
Hi,
I do not know the reason but I am getting this error so much more than before. Never seen this especially for Enfold. Really. May be 1 times in a year or so.
I am doing nothing actually. I login and in the dashboard I click the plugins or theme options. Then I see this image below. The website does not response. There is not actually a database change. May be just login record or so.
I ssh into the server and use this code in terminal: “sudo service php7.4-fpm-sp restart”. I refresh the page and web page opens. But in 1 or 2 minutes the problem happens again. I am not creating a page just clicking a menu item. I used to open like 10 pages at the same time. 2 would not be opened and I used to see this error but not in 8 pages. Then I changed that aggressive editing habit and opened 5 pages at the same time. Now I cannot even do this as well. I also disabled wordfence ( simply uninstall it with assistant) and uninstall wp-rocket for possible high resource usage. The problem is still there. CPU usage is increasing significantly. That is the problem but why?..
I use serverpoilot and Linode. I have seen the apache error.log and may times it is wp-admin. There is not any php error log but phpslow log and phpaccess log. When I send these log files to serverpilot team they generally say it is your plugins… etc. I cannot really understand the issue. Do I need a server expert? Or a developer ( many really do not understand the server issues anyway). Which road should I take? What is your suggestions?
Thanks
- This topic was modified 3 years, 6 months ago by ilkbaharkunduzu.
June 27, 2021 at 8:22 pm #1307614Hi,
I activated the caching plugin. Instead of using plugin’s own heartbeat disabler, I added the code below at the very top of the function.php. It seems more responsive but I do not understand the real reason. I am not actually doing anything. This cannot be because of a plugin or an extension. Should I upload the theme file… I do not know. Any suggestions would be nice.
add_action( 'init', 'stop_heartbeat', 1 ); function stop_heartbeat() { wp_deregister_script('heartbeat'); }
Thanks
June 28, 2021 at 3:53 am #1307635Hi ilkbaharkunduzu,
We are happy to hear that there are some improvements.
As for increasing CPU usage, that is because of the improvements being made to WordPress, Themes, and Plugins.
Usually, it’s security and feature updates consuming more resources like, cpu and memory.
Try to go to Enfold > Performance and disable some options that are in there that you may not be needing.Best regards,
NikkoJune 28, 2021 at 4:20 am #1307651Hi,
I do not even use those performance boosters at all. I understand you but there are 4 sites and 2 of them are Enfold. I have just before going out for a walk ( just in 2 minutes ) clicked to check 2 sites and one of them does not even have woocommerce. I just clicked the site of woocommerce to go to a random category page. Opened the page. Then I clicked a product. While trying to open the page, I go to other website in another tab. It did not open. 2 waited and 2 sites gave 503 error. It is not normal really.
I deleted wp-rocket. I have to understand the reason of this CPU problem or another PHP issue. It does not create php.error.log but…May be 7.4 has a problem. May be Linode recently changed the servers not just mine but overall a maintenance. I do not know. Any idea would be nice.
Best Regards
June 28, 2021 at 4:50 am #1307653Hi ilkbaharkunduzu,
I see, how much memory is allocated on these sites and how many plugins are active?
Also, can you try to downgrade PHP to 7.3? and see if there are improvements.
Also, here’s some list of plugins that use a lot of resource: https://www.peopleshost.com/wordpress-high-resource-usage-plugins/
Hope this helps.Best regards,
NikkoJune 28, 2021 at 5:55 am #1307656Hi,
There were wordfence in the list. I uninstalled it to eliminate that possibility and the last problem I have encountered could not be that. Here is the list. Many are not CPU intensive actually. However, I changed to 7.3 from 7.4 in the serverpilot admin. The site is more responsive. Let’s see if that changes.
Plugins List: Akismet Anti-Spam, CDN Enabler, Classic Editor, Compress JPEG & PNG images, Easy WP SMTP, Enable Media Replace, Envato Market, Facebook for WooCommerce, HeatShield, Insert Headers and Footers, iyzico WooCommerce, LayerSlider WP, Loco Translate, MC4WP: Mailchimp for WordPress, Product Filter for WooCommerce, Quform, Really Simple SSL, Really Simple SSL pro, Redirection, Regenerate Thumbnails, Taksitlendirme ( My local plugin for installment shorcode), Tracking Code Manager, WooCommerce, WooCommerce Tab Manager, WP-Optimize – Clean, Compress, Cache, WPS Hide Login. Yoast SEO
Best Regards
- This reply was modified 3 years, 5 months ago by ilkbaharkunduzu.
June 28, 2021 at 6:08 am #1307658Hi ilkbaharkunduzu,
Try to deactivate all plugins (temporarily put your site in maintenance mode), then activate them one by one and observe the cpu usage to accurately find which one (or more) plugins that are eating a lot of resources.
Best regards,
NikkoJune 28, 2021 at 4:02 pm #1307772Hi,
I will do that to the site without woocommerce. The same thing happening to that site too. However, that site is actually so simple. I remembered that I added breadcrumbs to the whole woocommerce site. There were lots of bot crawls. But it was just for an app. May be that affected whole site. Also in the log file I noticed this xmlrpc.php. With the help of the reference below, I added the code in .htaccess file to block it. If I figure this out, I will share it with you.
If anyone has ever encounter such a problem with serverpilot, please share your experiences.
Best Regards
June 29, 2021 at 5:57 am #1307853Hi ilkbaharkunduzu,
Thanks for sharing the article.
Bot crawls would definitely use a lot of server resources but I think it’s only during the time it’s crawling your website.
I think you should also try to switch to a default WordPress theme so you can also measure how much resources our theme is consuming on your site.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.