- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: listing top memory using processes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:36 PM
10-09-2002 12:36 PM
listing top memory using processes
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:45 PM
10-09-2002 12:45 PM
Re: listing top memory using processes
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:48 PM
10-09-2002 12:48 PM
Re: listing top memory using processes
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:53 PM
10-09-2002 12:53 PM
Re: listing top memory using processes
To list processes in decending order of virtual memory size, do:
# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2
Note the blank (space) character after the equal sign and before the 'ps' command. This means that UNIX95 behavior applies only to the command line.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:55 PM
10-09-2002 12:55 PM
Re: listing top memory using processes
UNIX95= ps -e -o vsz,ruser,pid,args | sort -rn | more
The largest process will be sorted to the top of the list. NOTE: The size (VSZ) shown does not include shared memory, shared libraries, buffer cache, etc as these are shared.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 12:59 PM
10-09-2002 12:59 PM
Re: listing top memory using processes
look into the *POSIX* options of "ps(1)", there are some to show what you look for (and then you would "sort" the output accordingly):
UNIX95=x ps -eo pid,flags,sz
"sz" is the amount of RAM used in "pages" (which are usually 4KB in size). For the real page-size check the output of "chatr" on the codefile of the process.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2002 01:17 PM
10-09-2002 01:17 PM
Re: listing top memory using processes
# cd /opt/perf/examples/adviser
# cp proc_mem_leak my_proc
# vi my_proc
==> Change the VSSthreshold from 30MB to a lower number .. say 1MB.. so set it to 1000
# glance -adviser_only -syntax my_proc -iterations 1 > my_output
Take a look at "my_output" for the details. This is not sorted of course.