Too many calls to admin-ajax.php maxes out SiteGround
-
Hi,
For users on SiteGround, they have a thing called CPU Sections which has a limit. On the “GrowBig” plan, this limit is 600,000. On the GoGeek plan, it’s 800,000.
I don’t know exactly how this is calculated, but CPU seconds are used whenever running dynamic scripts such as PHP or Pearl or anything else.
Recently SiteGround shut down a site of ours for going over this limit. When researching the cause, the access logs showed an excessive number of visits on “/wp-admin/admin-ajax.php?action=mfm_directory_runner”.
This actually happened as a kind of “spike” over the course of 3 days. I see calls to this file as much as 15,000 to 18,000 every day, but during these “spikes”, I had as many as 90,000 calls to the admin-ajax script from the mfm_directory_runner action.
I don’t know why that might be or what sorts of conditions would require it.
Here is what an access log entry looks like:
https://www.example.com – [18/Nov/2024:01:01:05 +0000] “POST /wp-admin/admin-ajax.php?action=mfm_directory_runner&nonce=a2521765444bb HTTP/1.1” 200 11 “-” “WordPress/6.6.2; https://example.com” | TLSv1.3 | 0.548 0.566 0.567 – 0 NC:000000 UP:-DT
I assume this has everything to do with MFM scanning and looking for file changes, but unfortunately this excessive use of admin-ajax means we can’t run the plugin on SiteGround.
I thought you and others should know. If the CPU Seconds gets used up, SiteGround will shut down the site for the entire rest of the month. Hopefully nobody else runs into this, or you can figure out how to not require so many uses of the ajax script.
Thanks!
- You must be logged in to reply to this topic.