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.

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:
    1
    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:
    745
    Likes Received:
    11
    Trophy Points:
    18
    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!
     
Loading...

Share This Page