Wordfence apparently causing extreme CPU overload
-
My site has been going through CPU “spikes” overloading my shared hosting (HostGator), and they have advised me that Wordfence appears to be making numerous admin-ajax.php requests that are causing such high usage.
HostGator is repeatedly restricting my site temporarily and then removing the restriction when the CPU usage falls down again. I was specifically asking them, when they told me this, about the “Firewall Rules” section of Wordfence, asking if any of those would reduce CPU usage. Their reply was: “We would not recommend enabling those settings as apart of the WordFence security plug-in. All of these settings rely on the ‘admin-ajax.php’ function of WordPress to ensure that all of these things are running. In some cases it would be possible that every time a request is made to your site, WordFence would call for the admin-ajax.php and start a process to check whether or not the IP address is from a human or crawler. In general the admin-ajax function of WordPress is a very CPU intensive function, and ideally, you would want to keep the calls for this function to a minimum to ensure that your CPU usage is as low as possible.”
So what part of Wordfence can I safely use in order to prevent these spikes and keep my site from being restricted?
I should say that I was not having ANY problems at all before this last week, since the site first started in early December. Why would problems suddenly start happening? There WERE other issues…. I had to install WP Super Cache; a Calendar was causing high usage, etc. After fixing all that stuff and the site got much faster, and the CPU usage was very low for several days, it started spiking yesterday and today and now they are telling me it’s this admin-ajax.php function and Wordfence that’s causing the spikes.
Can you specify what my ideal settings should be? I’m not running the Live Traffic option and I haven’t set any Firewall Rules. Should I UNcheck “Immediately block fake Google crawlers?” What about all the other options? How can Wordfence “play nice” with my host?
Thank you so much for any help you can offer! I’m an unpaid volunteer for my church, and this website could very well be a fulltime job! Whatever you can tell me, clearly and step by step, will be SO appreciated!
- The topic ‘Wordfence apparently causing extreme CPU overload’ is closed to new replies.