Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Excessive resource usage: memcached

Discussion in 'General Discussion' started by Clixer, May 14, 2018 at 7:10 AM.

  1. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hello,

    Need help in resolving this issue.

    Just setup a new VPS with 5 cpus and 5GB of RAM running PHP 7.1 and php-fpm and MySQL 5.6.39. We have been receiving an hourly email notification from the server about excessive resource usage of memcached. Following is the email we receive:

    Subject: lfd on server.domain.com: Excessive resource usage: memcached (1181 (Parent PID:1181))

    Body:

    Time: Mon May 14 20:01:41 2018 +1000
    Account: memcached
    Resource: Process Time
    Exceeded: 295608 > 1800 (seconds)
    Executable: /usr/bin/memcached
    Command Line: /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 -l 127.0.0.1 -U 0
    PID: 1181 (Parent PID:1181)
    Killed: No

    Could someone please advise if memcached server and client is configured correctly?

    Thanks for help.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,650
    Likes Received:
    58
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Memcached runs all the time you need to set your csf firewall to ignore
    add
    exe:/usr/sbin/memcached
    to your csf pignore
     
  3. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Thanks Dalem.

    Shall do.
     
  4. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi Dalem. Where exactly is the pignore function in csf?

    Thanks for help.
     
  5. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,650
    Likes Received:
    58
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Edit lfd ignore file in the GUI
    /etc/csf/csf.pignore via CLI
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    836
    Likes Received:
    62
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Thanks for the response on this @dalem! @Clixer please let us know if you have any other issues with this.
     
  7. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hello @dalem.

    I have entered the proposed code "exe:/usr/sbin/memcached" into the csf.pignore file but I am still receiving the email notifications form lfd.

    Any ideas what I should do next?

    Thanks.
     
  8. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,650
    Likes Received:
    58
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    did you restart LFD
     
  9. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
  10. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    629
    Likes Received:
    200
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    In your first post, the executable was shown as being /usr/bin/memcached

    Are you sure you added exe:/usr/bin/memcached into the pignore file, or did you add exe:/usr/sbin/memcached ?

    You could try editing this in pignore, save and restart LFD, and see what happens
     
    Clixer and cPanelLauren like this.
  11. Clixer

    Clixer Member

    Joined:
    Feb 24, 2018
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hello @rpvw.

    You are correct. I initially add exe:/usr/sbin/memcached which was still causing lfd to trigger. I have now changed to exe:/usr/bin/memcached. Email notices from lfd is now stooped.

    Many thanks for your help.
     
Loading...

Share This Page