Please enable JS

Which PHP script is eating CPU?

View a process tree to see which script is eating up your CPU.
June 29/Brian Young/Software

What's eating my CPU?!

My dev VM was causing my machine's fan to scream! I checked my machines processes and it was my dev Ubuntu VM... After running `top` on my VM, I noced a PHP process was eating about 99% CPU.
I needed to know which process it was!

PS to the rescue

Apparently, ps can build a process tree for you. That's amazing!

Run the following command to output a process tree to a log file.

ps faxuewwww > process-dump.log



RELATED POSTS


Comments/ 0


LEAVE A COMMENT

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
But why?

My random thoughts and documentation on the various hardware and software projects that occupy my day-to-day. My only hope is that other people can benefit from my notes.

Recent posts
Categories