AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

getting cpu statistics for a specific process

  • 1.  getting cpu statistics for a specific process

    Posted Fri March 07, 2008 11:13 AM

    Originally posted by: fwellers


    Hi,
    We are trying to run reports to determine what percentage of the physical cpu's are being used by Informix ( oninit ) processes on an Aix5.3 box.

    Is there any way to do that ? Sar just captures percentages but not by process.
    Topas allows us to see some of the processes, but even those it can't store long term in a file( at least I don't know how to do that ).

    Any advice would be appreciated.

    Thanks,
    floyd


  • 2.  Re: getting cpu statistics for a specific process

    Posted Fri March 07, 2008 12:37 PM

    Originally posted by: SystemAdmin


    Hi!
    You can monitor a process CPU consume using:
    ps -ef -o time,pid,ruser,args | sort -rn -k1,1 | more

    And then you treat the output with these snapshots...

    Or using nmon i think you can do the same

    regards