4

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

4 Answers 4

5

svmon is the most comprehensive tool for doing this on AIX.

svmon -P <pid>

will get you the full and glorious output. Obviously man svmon helps with interpreting that (just remember, by default, nearly all of the numbers are page counts, which are usually 4KB in size).

You can also get a very nice summary with memory shown in MB using,

svmon -P -O summary=basic,unit=MB

2
  • +1 for "just remember, by default, nearly all of the numbers are page counts, which are usually 4KB in size"
    – ivicaa
    Mar 29, 2018 at 9:35
  • include the options filtertype=working,segment=off and you will see the real memory usage.
    – n00b
    Nov 30, 2018 at 13:45
2

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)

1

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.

0

Have you tried:

ps -p PID -o command,size

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

4
  • Do I type literally "command,size"?
    – C. Ross
    Oct 6, 2009 at 18:25
  • Yes, those are the field names for the output option: -o Oct 6, 2009 at 19:12
  • 1
    This doesnt work for me, I get the error: ps: 0509-048 Flag -o was used with invalid list. Nov 21, 2016 at 11:09
  • @AndrewBrennan: try ps -p PID -o comm,rss Nov 21, 2016 at 17:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .