linux see how much memory a process that ran out was using code example Example: how to check which process is using more memory in linux ps aux --sort=-%mem | head