Quote:
Originally Posted by
Corona688
Try ps -e -o size -o args= | sort -k 1,1 which is a very, very rough estimate that likely includes a lot of overlap between processes.
I get this...
ps -e -o size -o args= | sort -k 1,1
ps: 0509-048 Flag -o was used with invalid list.
Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...]
[-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ]
[-@ [wparname] ]
Usage: ps [aceglnsuvwxX] [t tty] [processnumber]
While i ran the command (Madeingermany proposed)
ps -e -o pid= -o rss= -o vsz= -o args= | sort -k2,2n
and while Server B confuses me, in Server A if you add the RSS(*4/1024) is almost the same as in nmon for processes and system!!
So, it seems the command to give as output the expected result, but not on Server B...
I Just ran the command on a third similar server and i had the expected results again!!!