Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all: I want to monitor the CPU usage of a process which running for one hour, I know top can show all the stuff on screen but I want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    8

    How to record a process's CPU usage and dump it out??


    Hi all:
    I want to monitor the CPU usage of a process which running for one hour, I know top can show all the stuff on screen but I want to record the usage in a file so that it can be used later, is there any tools that can achieves this??

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,382
    It is not process accounting, but system accounting can be done relatively easy.
    Monitoring solution such as munin, xymon, nagios, incinga can be used for that.

    They use RoundRobinDatabases (rrd) for a multitude of metrics, cpu load is among them.
    e.g. xymon
    green : Xymon - trends status for static.88-198-16-79.clients.your-server.de (88.198.16.79) @ Fri Oct 28 21:32:56 2011
    You must always face the curtain with a bow.

Posting Permissions

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