If you find a process creating load on your linux machine, and you want to find the application, file or script which is running this process and ps aux command is your friend.
Suppose, a php process is running and creating load, you can run
1 |
ps aux | grep php |
It will show the the path to file which is running this process.
1 2 |
php 3486 0.0 0.1 4248 1432 ? S Jul31 0:00 /usr/sbin/abc.php php 3492 0.0 0.5 13752 3936 ? Ss Jul31 0:00 /usr/bin/php5-cgi |
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.