- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Which process use what amount of memory
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
Discussions
Discussions
Forums
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
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
тАО02-24-2004 06:42 AM
тАО02-24-2004 06:42 AM
Which process use what amount of memory
I would like to know how I can know what process use how much of the memory... I got a machine that is very slow... and when I do a "top", the CPU are idle at about 98%, the memory (free) is now at 9MB on a total of 4GB... Here is the output of top:
Load averages: 1.88, 1.90, 1.89
285 processes: 280 sleeping, 4 running, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.90 0.0% 0.0% 1.6% 98.4% 0.0% 0.0% 0.0% 0.0%
1 1.89 0.2% 0.0% 0.4% 99.4% 0.0% 0.0% 0.0% 0.0%
2 1.64 0.0% 0.0% 0.8% 99.2% 0.0% 0.0% 0.0% 0.0%
3 2.09 0.0% 0.0% 0.4% 99.6% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 1.88 -0.0% -0.0% -0.0% 100.0% -0.0% -0.0% -0.0% -0.0%
Memory: 4121204K (1312456K) real, 1634952K (350368K) virtual, 9212K free Page# 1/12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 06:52 AM
тАО02-24-2004 06:52 AM
Re: Which process use what amount of memory
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/
This tool can also get you that information.
Attaching a background perf data collector as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 06:52 AM
тАО02-24-2004 06:52 AM
Re: Which process use what amount of memory
Try :
UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2 | more
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 06:55 AM
тАО02-24-2004 06:55 AM
Re: Which process use what amount of memory
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 12:41 AM
тАО02-25-2004 12:41 AM
Re: Which process use what amount of memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 12:44 AM
тАО02-25-2004 12:44 AM
Re: Which process use what amount of memory
#!/bin/sh
# memtop - show top memory users and pid
# VSZ is in KB
echo "VSZ(KB) PID RUSER COMMAND"
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30
Rgds...Geoff