Yeah good question. Is there any FreeBSD or Linux application we can use to tell which application or file (especially WebApplications) that consumes too much CPU and memory Usage? Just like the Task Manager in Windows Servers.
Generally the "top" command works great.... But if you have cPanel you can see exactly which user and what file is using x amount of resources...
There is a software called Apache Log Tail. To find out which site is taking high load and bandwidth you need to use some software which can drag the informations from apache to you. Top command can only identified which command is taking high load and who is the owner of the command.
But the "Top" command somtimes consumes high amount of resource too, unlike the "Task Manager" of Windows Servers.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/basics-processes.html ps - nothing....you'll get it in a minute
Untrue. Yes, it consumes some resources, but you only run it while you're logged into SSH, from there you can see what process is hogging the CPU. Windows Task Manager uses plenty of resources, my CPU always spikes when I use it...
Well I'm not going to argue about this. But is there any way for us to track if a certain PHP file (like test.php) is making your CPU spike? I believe we can only see the Web Server like Apache, mysql, etc in "Top" and "ps-aux".