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!

out of memory error. Seems false

Discussion in 'General Discussion' started by sahostking, Feb 8, 2016.

  1. sahostking

    sahostking Well-Known Member

    May 15, 2012
    Likes Received:
    Trophy Points:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator

    Recently been getting tons of these that dont stop:

    Out of memory: ⚠ A process was terminated because the system is low on memory.

    It's an 8 core VPS with 8GB Memory. I then decided to increase memory to 12GB - no change then to 16GB still the same.

    What is weird is the free memory in top and free -m is still very good. Usually 11GB free. So I'm a bit lost why its saying system is low on memory.

    Now we use Cloudlinux on our servers and if increase the memory allwance to PMEM in LVE say from 256M to 512M or from 512M it matches this in /var/log/messages:

    Feb 8 18:30:53 lin02 kernel: Memory cgroup out of memory: Kill process 869893 (php) score 32 or sacrifice child
    Feb 8 18:30:58 lin02 kernel: memory: usage 524288kB, limit 524288kB, failcnt 145009

    Somehow when that is viewed I think cpanel sais out of memory because of the word "memory" - is cpanel's script just grepping for word memory?

    I even purchased Litespeed out of desperation and installed that again with no change so I'm thinking the "the system is low on memory." message is generic and false?

    Any idea?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. tejli009

    tejli009 Member

    May 12, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    As per my experience cloudlinux wont increase or decrease tge memory in php.ini

    Am getting also errors in wordpress.

    How to fix:

    Only for selected users:
    Create a php.ini file in public_html and increase the memory frim there. Google "increase memory php.ini"

    2. For whole sites:
    Edit php.ini in Server and increase it from there.

    Edit: or the server is oversold.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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