• Resolved johnmccurdy

    (@johnmccurdy)


    For the past several weeks, I get one email each day from each of the accounts that run Wordfence on my Linux VPS, that looks like this (where “nnnnn” is the account name on the server):

    ________________________
    Subject: lfd on host.MY_SERVER_DOMAIN.com: Excessive resource usage: nnnnn (22263 (Parent PID:30555))

    Time: Wed Oct 18 14:48:00 2017 -0700
    Account: nnnnn
    Resource: Virtual Memory Size
    Exceeded: 511 > 500 (MB)
    Executable: /opt/cpanel/ea-php56/root/usr/bin/php-cgi
    Command Line: /opt/cpanel/ea-php56/root/usr/bin/php-cgi /home/nnnnn/public_html/wp-admin/admin-ajax.php
    PID: 22263 (Parent PID:30555)
    Killed: No
    _____________________________

    When I’ve checked the logs, each occurrence seems to coincide with a Wordfence scan on that account.

    Any ideas or suggestions?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • In CSF raise the PT_USERMEM setting.

    We’ve also noticed a performance improvement by moving to PHP 7.

    Hi johnmccurdy,
    It seems that you are exceeding the memory limit defined in the CSF configuration file, it could be that your server is utilizing too much memory already and when it comes to scan time it just exceeds the limit, in my opinion you have three options there:
    1- Increase the memory limit defined in CSF. (in case you already have this amount available for your server).
    2- Optimize the memory usage on the server (decrease number of plugins installed, optimize other scripts running on the server, etc…), or even create a swap partition that will be used for virtual memory as well.
    3- Do the following to decrease the memory usage in Wordfence scans:

    Thanks.

    Thread Starter johnmccurdy

    (@johnmccurdy)

    Thanks wfalaa and swedeman. For now, moving to PHP 7 has solved the problem. I’ll be looking at your other suggestions too, as I have time.

    • This reply was modified 7 years, 5 months ago by johnmccurdy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘lfd Excessive resource usage’ is closed to new replies.