tim
Jun 13 2005, 12:07 AM
Ayone knows any good tool on freebsd that could give a detailled cpu consumption for like the 5-10 last seconds ?
Ie give a full list of the processes that ran in the last 5-10 seconds and sum up how much cpu they used ?
Kinda like the command top, but instead of showing the real time consumption at a given time, something that would sum it up for a certain period of time.
thanks.
kamihacker
Jun 13 2005, 01:20 AM
try MRTG or HotSanic, but I don't think they are able to snapshot so much detail as you want
although they will graph your CPU load over time, I don't know what is the minimum scale, I guess you can make it work by the minute
regards
im1-bill
Jun 14 2005, 12:42 PM
I have a script to monitor, kill and notify the sysadmin(s) of a runaway process on FreeBSD. You can snag it here:
http://www.im1.com/download/pmon.tar.gz
You simply put the script in your rc.d directory and it launches the pmon script.
Should be easy to see how it works. We have used it to monitor and kill runaway apache processes for SlashCode based sites as sometimes mod_perl runs away.
Hope this helps
Bill