CPU and memory utilisation by one process

Hi,

We need to monitor one process over time to see at which exact point it starts to consume to much memory and CPU (to correlate this with some other events).

I am a newbie in AIX, so please could you tell me which command will give a snapshot of the current state of a process so that I could then loop it, grep it and write to a file.

AIX 5.3

If you need any more details let me know!

Many thanks!

svmon -P (see man page) gives a detailed output. If too detailed, you can pipe it into "..| grep -p Pid", but remember that some memory of being listed in the extensive output is shared with other processes. So this is an information to use with care. There is plenty to read about it on Redbooks too.