How to check how much memory a solaris process consumes? I'd like both total address space allocated and the amount that is resident in RAM.
I tried summing pmap output with some awk script, but it was an ugly hack. Is there a better way to script it?