- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HOWTO: Determine 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
03-20-2006 05:32 AM
03-20-2006 05:32 AM
HOWTO: Determine memory usage by process
Thanks for any input on this.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 05:38 AM
03-20-2006 05:38 AM
Re: HOWTO: Determine memory usage by process
set UNIX95=1
You can do it with the ps command.
For more precision and easier reports, consider glance.
lsof may help you identify the process.
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
03-20-2006 05:40 AM
03-20-2006 05:40 AM
Re: HOWTO: Determine memory usage by process
I'd use 'glance' or this to sort the processes' memory use in descending amounts:
# UNIX95= ps -e -o vsz -o pid -o args |sort -k1nr|more
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 05:40 AM
03-20-2006 05:40 AM
Re: HOWTO: Determine memory usage by process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 05:42 AM
03-20-2006 05:42 AM
Re: HOWTO: Determine memory usage by process
The rub is that it's very difficult to add up memory usage because shared library code, multiple instances of the same program, shared memory, and memory-mapped files might be counted multiple times.
For example, each instance of the vi editor gets a private data and stack segment but share a common text segment and shared library code. In that sense, the memory usage appears to be greater than it actually is.
The most meaningful metric to use is vmstat. If the pageout rate (po) is greater than 10 or so for more than a few tens of seconds then you are swapping. The performance impact of swapping is so great that reducing the size of the buffer cache or SGA is much better than allowing the box to swap. The additional disk fetches resulting from smaller caches is trivial (by a factor of ~100) when compared to that of swapping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 06:36 AM
03-20-2006 06:36 AM
Re: HOWTO: Determine memory usage by process
I ran your suggested command & found it to be quite informative, enough to conclude that a large number of user connections, generated from the application, to one of the Oracle instances is responsible for the excessive memory consumption. Finger pointing has concluded & we are now focused on solving the problem.
I appreciate your timely reply & feedback from others.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 06:38 AM
03-20-2006 06:38 AM