Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2008, 02:41 PM
newa
 
Posts: n/a
Default how to find the process that uses the most memory on hp-ux (top doesnot do it)

Hi,

I know on Linux and Solaris you can use top (by default, top lists the
processes based on CPU usage) and let it sort the proc list by memory
usage. 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?

Thanks a lot in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-03-2008, 02:41 PM
Dennis Handly
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 02:41 PM
newa
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

On Apr 1, 4:31*am, Dennis Handly <dhan...@convex.hp.com> wrote:
> 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


Thanks, Dennis. That really helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 08:29 AM
Alain
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

newa a écrit :
> find the process that uses the most memory?

With gpm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 08:29 AM
edcrosbys
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

On Mar 31, 9:46*pm, newa <DavidLL...@gmail.com> wrote:
> Hi,
>
> I know on Linux and Solaris you can use top (by default, top lists the
> processes based on CPU usage) and let it sort the proc list by memory
> usage. 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?
>
> Thanks a lot in advance.



export Unix95=1
ps -eo ruser,pcpu,sz,vsz,pid

You can now sort it by either Vsz or sz as you see fit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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)...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 08:30 AM
Michael Tosch
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

Ulrich Windl wrote:
> 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)...


This works on all SysV-compatible systems:

ps -elf | sort -n -k 10,10

And for HP-UX you should bookmark

http://hpux.connect.org.uk/

Search for Package name top,
download the top-3.6.1 package for your platform,
and its dependent packages,
gunzip and
swinstall -s /absolute/path/to/package.depot \*

and start
/usr/local/bin/top -o size

provided it installs in /usr/local/bin.

--
Michael Tosch @ hp : com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 08:30 AM
Dennis Handly
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

Michael Tosch wrote:

> Search for Package name top,
> download the top-3.6.1 package for your platform,


The last time I heard of some that wanted to run the non-HP-UX version
of top, it wanted to open /dev/kmem. It had to have root but it still
didn't work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-29-2008, 08:17 PM
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:

> Michael Tosch wrote:
>
>> Search for Package name top,
>> download the top-3.6.1 package for your platform,

>
> The last time I heard of some that wanted to run the non-HP-UX version of top,
> it wanted to open /dev/kmem. It had to have root but it still didn't work.


With ACLs, you could also give selective read permission to /dev/kmem, without
being "root". THe next OS-Core Update may destroy your permission settings,
however. As there was a working top program for SunOS decades agao, I see no
reason why there shouldn't be one for HP-UX...

Regards,
Ulrich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-02-2008, 05:00 AM
Dennis Handly
 
Posts: n/a
Default Re: how to find the process that uses the most memory on hp-ux (topdoes not do it)

Ulrich Windl wrote:
>> It had to have root but it still didn't work.

>
> With ACLs, you could also give selective read permission to /dev/kmem, without
> being "root".


I said I was root and it still didn't work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62