- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to list memory usage by process
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
04-04-2006 07:57 PM
04-04-2006 07:57 PM
We are using HP-UX 11.00 how can i find memory usage (Mb used) for each process.
Ahmed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:03 PM
04-04-2006 08:03 PM
Re: How to list memory usage by process
Also check this thread,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=838754
(Geoff's script)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:04 PM
04-04-2006 08:04 PM
Re: How to list memory usage by process
see below is the output so where is size of memory here taken by process? and can I sort it by higher usage?
SZ VSZ PID COMMAND
1098 4428 14256 cm
1410 7244 14892 cm_uat02
1098 4428 14251 cm
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:05 PM
04-04-2006 08:05 PM
Re: How to list memory usage by process
Use this for reference:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1016659
get glance for feasible monistoring.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:10 PM
04-04-2006 08:10 PM
Re: How to list memory usage by process
You can use this command as well,
UNIX95= ps -ef -o pid,ruser,vsz,args|sort -nrk3
Output will be sorted from High to low. These are in KB. You may need to convert them into MB for your need.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:17 PM
04-04-2006 08:17 PM
Re: How to list memory usage by process
UNIX95=1 ps -ef -o vsz= -o pid= -o comm= | sort -rnk1 | awk '{ print $1/1024" MB "$2" "$3; }'
will give MB size for memory usage.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:23 PM
04-04-2006 08:23 PM
Re: How to list memory usage by process
# UNIX95=1 ps -ef -o vsz= -o pid= -o comm= |sort -rnk1 | awk 'BEGIN{printf "Memory PID Process\n";}{ printf "%-3.2f MB %-5d %-15s\n",$1/1024,$2,$3; }'
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:24 PM
04-04-2006 08:24 PM
Re: How to list memory usage by process
Lot of threads have been discussed in the past about this, (memory usage by process)
http://www2.itrc.hp.com/service/james/search.do?todo=search&searchtext=memory+usage+by+process&from=forums&origin=0&submit.x=0&wpa=forums1.itrc.hp.com%3A80&submit.y=0&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&chkServStor=on&presort=rank&esc=us.support.itrc.hp.com&admit=-1335382922+1144225378937+28353475
You can take a look at them for more information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:29 PM
04-04-2006 08:29 PM
Re: How to list memory usage by process
Thanks very usful info. appreciate ur hep.
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:39 PM
04-04-2006 08:39 PM