Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

High CPU load when typing in to focus keyword field & updating #8398

Closed adammontague closed 5 years ago

adammontague commented 6 years ago

Please give us a description of what happened.

When typing in to the focus keyword field, CPU server load goes through the roof and causes a 503 error knocking out our website due to the limitations on CPU time by our host (Siteground).

screen shot 2017-11-30 at 09 23 32

The screenshot shows a reading of 19.38, however the error logs suggest this can get up in to the 100's.

Error log entry _[Tue Nov 28 09:36:29.342934 2017] [:error] [pid 45387] Execute of /home/username/publichtml/index.php stopped because of load 114.20

Siteground customer support have given the following insight in to script executions at the time of the CPU overload...

Executed Scripts & Number of executions /home/username/public_html/index.php = 165,227 /home/username/public_html/wp-includes/ms-files.php = 108,848 /home/username/public_html/wp-admin/admin-ajax.php = 15,494

Disabling Yoast SEO fixes this CPU load.

Please describe what you expected to happen and why.

I expect Yoast to not eat up CPU like this, it's causing a few of our Siteground hosted websites to go down when these limits are reached.

How can we reproduce this behavior?

  1. Type in to the focus keyword field
  2. Watch CPU server load sky rocket
  3. Cry as your Siteground hosted website goes down

Technical info

CarolineGeven commented 6 years ago

Thanks for reporting this issue. Does this happen with longer texts or does this even happen when you have not yet typed anything?

Were you also able to confirm this issue with all plugins except Yoast SEO off?

adammontague commented 6 years ago

Does this happen with longer texts or does this even happen when you have not yet typed anything?

It has more of an effect on the CPU load when there's more text in the WYSIWYG. When there's a lot of text the page slows dramatically too and causes admin-ajax.php to take over 2 seconds per call.

Were you also able to confirm this issue with all plugins except Yoast SEO off?

Yes.

CarolineGeven commented 6 years ago

@adammontague Thanks for the feedback. I've discussed this with one of my colleagues and he will investigate your issue. We think it's an issue specifically for multisite, but we need to dive into that.

Thanks for your patience!

Djennez commented 5 years ago

This thread has not seen activity or updates since February 19th 2018 so we are going to close this issue due to inactivity.

If you feel like this issue is still valid as of today, please feel free to re-open and leave a comment, or submit a new issue following our bug report guidelines. If you have questions that are not answered in our Knowledge base, please feel free to reach out on the free support forums or on social media.