How can I determine how much memory a process is using in AIX?

link|improve this question

76% accept rate
feedback

3 Answers

Have you tried topas? It's pretty good for that sort of thing.

You can also try nmon but it's third party, so you'll have to download and compile it.

link|improve this answer
feedback

You can see memory usage with:

ps v PID

where PID is the process ID you are checking.

You can find info about the variables displayed here: http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/mem_usage_determine_ps.htm

You will be more interested in SIZE (Virtual size in paging space in kilobytes of the data section of the process) and RSS (Real-memory size in kilobytes of the process)

link|improve this answer
feedback

Have you tried:

ps -p PID -o command,size

where PID is the process ID that you're interested in?

link|improve this answer
Do I type literally "command,size"? – C. Ross Oct 6 '09 at 18:25
Yes, those are the field names for the output option: -o – Dennis Williamson Oct 6 '09 at 19:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.