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.

out of memory error. Seems false

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

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi

    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?
     
  2. tejli009

    tejli009 Member

    Joined:
    May 12, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Austria
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page