Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    315

    Linux show memory vs cpu vs io [history]


    Hello,

    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
    "Avoid the Gates of Hell. Use Linux affordable VPS."

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    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!

  3. #3
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    315
    please which command is that to show cpu, ram vs i/o next to each other?
    "Avoid the Gates of Hell. Use Linux affordable VPS."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •