Command to find TOP 5 Memory consuming process

HI All,

Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command

I tried few commands from the internet but the result only give the real memory usage or pagging, I want total memory usage of the process.

I also tried using topas and vmon but the result seems to be inaccurate.

Thanks

One addition to my prev post..

I dont have root access to the server.

Thanks

1.120: Where can I find tools for performance monitoring?

Nmon , topas

See the man page of "ps", IIRC "ps -Alo vsz" gives the number of allocated memory pages. Multiply this number by 4k to get the number of bytes.

I hope this helps.

bakunin