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!

Excessive resource usage: memcached

Discussion in 'General Discussion' started by Clixer, May 14, 2018.

  1. Clixer

    Clixer Active Member

    Joined:
    Feb 24, 2018
    Messages:
    25
    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,679
    Likes Received:
    71
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Clixer

    Clixer Active Member

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

    Shall do.
     
  4. Clixer

    Clixer Active Member

    Joined:
    Feb 24, 2018
    Messages:
    25
    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,679
    Likes Received:
    71
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Edit lfd ignore file in the GUI
    /etc/csf/csf.pignore via CLI
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,851
    Likes Received:
    135
    Trophy Points:
    118
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Clixer

    Clixer Active Member

    Joined:
    Feb 24, 2018
    Messages:
    25
    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,679
    Likes Received:
    71
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    did you restart LFD
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Clixer

    Clixer Active Member

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

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    237
    Trophy Points:
    93
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Clixer and cPanelLauren like this.
  11. Clixer

    Clixer Active Member

    Joined:
    Feb 24, 2018
    Messages:
    25
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice