Process ids consuming huge resources ?

Hi All

what is the command to check process ids , which are running from long time and which are consuming more cpu?

Also how to check, what a particular PID is running what

For Ex:

i have a pid :3223722 which is running since from long time,
if i want to check what is this process about, the details of this process
and what it is running ,

when i type

  1. ps -ef | grep 3223722

ps3adm 1458336 2187476 0 05:24:31 pts/17 0:00 grep 3223722
what is the command to check process ids , which are running from long time ?

My OS Being
AIX &

HP Unix

[quote="sidharthmellam"]

what is the command to check process ids , which are running from long time and which are consuming more cpu?

[quote]

Use "ps" and consult its (rather exhaustive) man page by issuing "man ps". For instance, use:

ps -eo "%U %p %P | %C %z %t | %c %a"

Additionally there are a lot of other tools displaying basically the same info as the above command but in somewhat "cooked" form: "topas" (IBMs own tool), "nmon" (freeware package), "monitor" (freeware) and probably some others.

This suggests, that there is no such process, so you can't see, which resources it is using. Of course "grep" finds itself running in the process list when it runs and so reports one hit. To filter that out you could use:

ps -<some options> | grep -v grep | grep <PID>

If this command doesn't turn up with any output the PID is simply not used.

I hope this helps.

bakunin