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: The process “php”

Discussion in 'General Discussion' started by bigbankclub, Oct 20, 2015.

  1. bigbankclub

    bigbankclub Registered

    Joined:
    Dec 23, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This is straight forward, the process "php" was terminated because of the system was low in memory.

    Based on the 14 emails that were sent all at the same time, and a final email (15th email) letting me know that the "mailman" service was was not part of the cPanel’s chkservd service - I'm looking at the email notifications per the 14 concerning the "Out of Memory based on low memory error" - I'm trying to decipher if it's the "Spam Assassin" service or something else.

    Code:
    PID    Owner    CPU %    Memory %    Command
    12930    mysql    1.03    2.89    /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/XXXX-XXXX-XX.XXXX.com.err --open-files-limit=10000 --pid-file=/var/lib/mysql/XXXX-XXXX-XX.XXXX.com.pid
    25242    XXXX    41.47    2.22    /usr/bin/php /home/XXXX/public_html/index.php
    22959    root    1.40    1.46    /usr/local/cpanel/3rdparty/perl/514/bin/spamd --daemonize --max-spare=1 --max-children=3 --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid -i127.0.0.1
    22961    root    0.00    1.42    spamd child
    25269    root    12.96    0.89    tailwatchd - chkservd - sending OOM notification
    
    This is what the 14 emails look like, I have replaced items with "X's" as one can see.

    There was also a "oom_dmesg.txt" file atatched to each email.

    A preview:

    Code:
    [10476] 0 10476 1611 90 0 0 0 grep
    [10477] 0 10477 1611 92 3 0 0 grep
    [10480] 99 10480 2986 78 3 0 0 suphp
    [10484] 508 10484 3536 192 0 0 0 suphp
    [10485] 508 10485 3536 192 3 0 0 suphp
    [10487] 508 10487 12637 65 2 0 0 php
    [10488] 508 10488 3536 191 0 0 0 suphp
    [10491] 99 10491 19920 120 1 0 0 httpd
    Out of memory: Kill process 9661 (mysqld) score 7 or sacrifice child
    Killed process 9661, UID 498, (mysqld) total-vm:2364300kB, anon-rss:36180kB, file-rss:564kB
    
    I'm attempting to locate the root of the issue.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,786
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The output you provided suggests this was related to the PHP process:

    You may find this thread helpful:

    Troubleshooting high server loads on Linux servers

    Thank you.
     
Loading...

Share This Page