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!

Track down PHP process when Out of memory

Discussion in 'General Discussion' started by whnewbie, Mar 20, 2016.

  1. whnewbie

    whnewbie Member

    Joined:
    Jan 1, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Sometimes I get system email informing me "Out of memory: ⚠ A process was terminated because the system is low on memory.".

    In the "oom_dmesg.txt" file attached with the system email, I can see that the process causing the issue is "PHP". However, I find that I cannot use the PID to track down which website and which script is causing the problem.

    I have looked through all the logs in "/usr/local/apache/logs". But there is no PID to identify the process.

    Anyone has a better way to track down the process? Thanks.
     
    #1 whnewbie, Mar 20, 2016
    Last edited: Mar 20, 2016
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    751
    Likes Received:
    11
    Trophy Points:
    143
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    I'd camp out on ssh running top. Once you have it open hit the "m" key and it will sort by memory usage. If something is using that much memory you'll see it.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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