Track down PHP process when Out of memory
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.
-
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! 0
Please sign in to leave a comment.
Comments
1 comment