Support » Plugin: Wordfence Security » Excessiv memory usage at 'Scanning comments for URL's in Google's Safe Browsing'

  • On a website with 158,732 comments Wordfence is unable to complete ‘Scanning comments for URL’s in Google’s Safe Browsing’ without exceeding the memory limit. I’ve bumped it all the way up to 384Mb from 64Mb to see just how far its going and its still failing at this point:

    [Feb 26 13:41:07] Scanning comments with 158000 left to scan.
    [Feb 26 13:41:49] Scanning comments with 157000 left to scan.
    [Feb 26 13:41:59]
    Fatal error: Allowed memory size of 402653184 bytes exhausted (tried to allocate 16777216 bytes) in /home/<snip>/www/wp-content/plugins/wordfence/lib/wfConfig.php on line 455

    Both the php-fpm process and mysqld consume 100% CPU during the process as well. The peak memory usage of the website averages 30-40mb on requests to the front page or wp-admin before starting a scan.

    https://wordpress.org/plugins/wordfence/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wordfence

    (@mmaunder)

    Hi,

    Put wordfence in debug mode and check which file it’s getting stuck on. (bottom of options page).

    Regards,

    Mark.

    Enabling debug in 5.0.3 shows the following:

    [Apr 13 17:50:05] Scanning comments with 164000 left to scan.
    [Apr 13 17:50:18] Scan process ended after forking.
    [Apr 13 17:50:21] Forking during hash scan to ensure continuity.
    [Apr 13 17:50:21] Entered fork()
    [Apr 13 17:50:21]
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 22291813 bytes) in /home/laurenconrad/www/wp-content/plugins/wordfence/lib/wfConfig.php on line 527

    Plugin Author Wordfence

    (@mmaunder)

    Thanks. I apologize for my first comment, I had not read your post properly.

    Can you please tell me how many total comments you have on your site? I can see how many it has left to scan, but what is the total it starts with?

    Regards,

    Mark.

    164,735

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excessiv memory usage at 'Scanning comments for URL's in Google's Safe Browsing'’ is closed to new replies.