Title: CPU usage
Last modified: April 14, 2017

---

# CPU usage

 *  Resolved [dbarraza](https://wordpress.org/support/users/bradwilcox/)
 * (@bradwilcox)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/)
 * W2012r usage seems to be about 5% per installation of the plugin. If I watch 
   the CPU graph it makes constant peaks and valleys about every five seconds — 
   or even every second. I assume this is because the plugin is working, perhaps
   quite hard in my case, to follow my rules. I’ve set it to US-only whitelist, 
   including front-end blocking.
 * Any tips to bring down CPU usage?
 * If I have four separate WP sites all running from this server, should I therefore
   expect about 20% baseline CPU usage going forward to be normal?
 * Update: after restarting my IIS the CPU utilization came way down to 1%. When
   I then opened four tabs on my own browser and logged into the four WP sites, 
   into the geoblock settings, the CPU usage returned to a constant and fast cycle
   of about 1-15% CPU. I assume this is related to the number of cgi/fastcgi exe
   instances that are presently running (about ten, of which most are I myself).
    -  This topic was modified 9 years, 1 month ago by [dbarraza](https://wordpress.org/support/users/bradwilcox/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/#post-9032433)
 * Hi [@bradwilcox](https://wordpress.org/support/users/bradwilcox/),
 * I reported the resource usages in the similar topic at [causing high resource consumption?](https://wordpress.org/support/topic/causing-high-resource-consumption/#post-9032405).
 * Please try the followings:
 * 1. Disabling DNS reverse lookup
    DNS lookup spends server resources relatively
   high. So if you enable “Block by country” on “Front-end target settings” section,
   replace `HOST` to `*`. Please refer to the document “[UA string and Qualification](http://www.ipgeoblock.com/codex/ua-string-and-qualification.html)”
   about `HOST`.
 * 2. Disabling “Record validation statistics” on “Record settings” section.
 * 3. Disabling “Record validation logs” or “Only when blocked” on “Record settings”
   section.
 * I think that No.1 is a suspect of this issue. So I should provide an option to
   disable/enable DNS lookup in the next release.
 * I’d appreciate if you provide me some feedback about the above results.
 * Thank you for heads up!
 * P.S. Related to the number of instances, Apache also makes multiple HTTP daemon
   to listen the requests and run PHP. I think it’s quite normal.
 *  Thread Starter [dbarraza](https://wordpress.org/support/users/bradwilcox/)
 * (@bradwilcox)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/#post-9033967)
 * Thank you for the reply.
 * I think I already had DNS reverse lookup disabled: it seems to be disabled by
   default in IIS8.
 * I would like to initially keep both record setting options on for now, because
   it is helping me watch who is trying to hack my site.
 * Could you explain what you wrote about the **HOST and \*** ? I am not quite understanding
   you. Currently in that setting field all I have is the default:
 * Google:HOST,bot:HOST,slurp:HOST
    spider:HOST,archive:HOST,*:FEED *:HOST=embed.
   ly,Twitterbot:US,Facebot:US
 * If you want to make changes in that filed perhaps you would edit the above so
   I can copy paste it?
 * By the way, I don’t want to give twitter or facebook or anything other than google
   access to crawl the site.
    -  This reply was modified 9 years, 1 month ago by [dbarraza](https://wordpress.org/support/users/bradwilcox/).
 *  Plugin Author [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/#post-9034418)
 * Hi [@bradwilcox](https://wordpress.org/support/users/bradwilcox/),
 * > it seems to be disabled by default in IIS8.
 * OK. Just to be sure, please search “66.249.66.1” (googlebot.com). If the result
   of “host” indicate “66.249.66.1”, that’s OK. But if it indicates something like“
   crawl-66-249-66-1.googlebot.com”, then the fallback function in this plugin works.
   It depends on how DNS lookup is disabled in your server.
 * Regarding **HOST** and **\***, this plugin never try to get PTR record for DNS
   reverse lookup if “UA string and qualification” does not include “**HOST**“. 
   For example, `Google:*` just checks if user agent string includes `Google` and
   never verify its host.
 * Please copy and paste the followings:
 *     ```
       Google:*,bot:*,slurp:*
       spider:*,archive:*,*:FEED
       embed.ly:*,Twitterbot:US,Facebot:US
       ```
   
 * And the last thing I should notice is “**Validation timing**” in “**Validation
   rule settings**“. Please try **“mu-plugins” (ip-geo-block-mu.php)**. You can 
   refer to the document “[Validation timing](http://www.ipgeoblock.com/codex/validation-timing.html)“.
 * Thanks.
 *  Thread Starter [dbarraza](https://wordpress.org/support/users/bradwilcox/)
 * (@bradwilcox)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/#post-9042387)
 * Thank you for the help. The server’s CPU has stabilized finally today at about
   2% but even better it’s smooth now. What I pasted seemed to have helped even 
   though I think I had other issues outside of your plugin that I also solved. 
   LOVE your plugin. What a relief to block a bunch of foreign traffic that was 
   all illegitimate anyway.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CPU usage’ is closed to new replies.

 * ![](https://ps.w.org/ip-geo-block/assets/icon-128x128.png?rev=1148568)
 * [IP Geo Block](https://wordpress.org/plugins/ip-geo-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip-geo-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip-geo-block/)
 * [Active Topics](https://wordpress.org/support/plugin/ip-geo-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip-geo-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip-geo-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dbarraza](https://wordpress.org/support/users/bradwilcox/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/cpu-usage-10/#post-9042387)
 * Status: resolved