WordPress.org

Ready to get started?Download WordPress

Forums

Wordfence Security
Excessiv memory usage at 'Scanning comments for URL's in Google's Safe Browsing' (5 posts)

  1. Einkoro
    Member
    Posted 5 months ago #

    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/

  2. Wordfence
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,

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

    Regards,

    Mark.

  3. Einkoro
    Member
    Posted 4 months ago #

    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

  4. Wordfence
    Member
    Plugin Author

    Posted 4 months ago #

    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.

  5. Einkoro
    Member
    Posted 4 months ago #

    164,735

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.