Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
Linux show memory vs cpu vs io [history]
please which command or linux script to use to check history cpu versus memory versus io usage or vs number of httpd processes?
I know there is "sar" which does this, but im unsure how to merge the output so it shows cpu, memory, io etc at one line? thx
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
See the sar command (sysstat). The default collection period (crontab) is 10 minutes. I find that I need to change that to 1 minute and alter the command to collect all stats so I can do detailed analysis of the behavior of a system over time.
As for one line? That's up to you to parse, extract, and present the data in a format that makes sense to you. I use a hadoop-based time-series database and web-based GUI for that.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
please which command is that to show cpu, ram vs i/o next to each other?