View Single Post

   
  #6 (permalink)  
Old 04-12-2008, 01:03 AM
Ulrich Windl
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (top does not do it)

Dennis Handly <dhandly@convex.hp.com> writes:

> newa wrote:
>> But hp-ux top does not do that. So what can you do on hp-ux to
>> find the process that uses the most memory?

>
> You can send the output to a file and then sort it. You would have problems
> with the M and K suffix though.
>
> $ top -f top.out -n 10000 -d 1
> $ sort -n -k7,7 top.out


Maybe someday HP ports the Linux version to HP-UX (where you can select the
sort field interactively)...
Reply With Quote