- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- process memory utilization???
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
09-14-2005 04:17 AM
09-14-2005 04:17 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:20 AM
09-14-2005 04:20 AM
Re: process memory utilization???
There is alot of content on the forums about this already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:20 AM
09-14-2005 04:20 AM
Re: process memory utilization???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:22 AM
09-14-2005 04:22 AM
Re: process memory utilization???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:23 AM
09-14-2005 04:23 AM
Re: process memory utilization???
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=830132
It is one of many.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:25 AM
09-14-2005 04:25 AM
Re: process memory utilization???
The thread I linked to was posted by Alex!
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:26 AM
09-14-2005 04:26 AM
Re: process memory utilization???
Two easy ways are with 'glance' or simply with 'ps'.
For instance, to find the virtual size ('vsz' in kilobytes), along with the user, parent pid and command line used to start the process, for pid-1593 do:
# UNIX95= ps -p 1593 -o "user,vsz,pid,ppid,args"
Note that there is NO space between 'UNIX95=' and the 'ps' command. This syntax sets the UNIX95 variable ONLY for the duration of your commannd line. It arms the XPG4 behavior. You don't want it to "stay around" in your environment necessarily, so don't export it.
See the manpages for 'ps' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:55 AM
09-14-2005 04:55 AM
Re: process memory utilization???
here's the results I get.
#UNIX95= ps -p 11274 -o vsz,pid,args
VSZ PID COMMAND
26684 11274 /opt/Indicative/jre/HPUX11/jre...
From Glance I get this
Process Name PID PPID Pri Name ( 200% max) CPU IO Rate RSS Cnt
--------------------------------------------------------------------------------
java 11274 1 168 root 0.7/ 3.4 84.1 0.0/ 0.4 80.4mb 47
So, 26684 * 4 = 106736kb
and from Glance RSS = 80.4mb Are they suppose to compare?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:06 AM
09-14-2005 05:06 AM
Re: process memory utilization???
rss - resident size, the size in the memory.
try to replace the vsz -> sz and I think you'll get close results.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:08 AM
09-14-2005 05:08 AM
Re: process memory utilization???
UNIX95= ps -p 11274 -o sz,pid,args
yields
SZ PID COMMAND
6411 11274 /opt/Indicative/jre/HPUX11/jre1...
and 6411 * 4 = 25644
???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:15 AM
09-14-2005 05:15 AM
Re: process memory utilization???
The computations are not done exactly the same for both probes.
'glance' includes any shared memory regions and/or shared library regions in its RSS value in addition to the stack, text and data region totals of the process. 'ps' does not.
The units for 'vsz' are 1024 byte chunks. If you use 'sz' then the units are PAGE_SIZE chunks (generally 4096).
To see you PAGE_SIZE, do:
# getconf PAGE_SIZE
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:18 AM
09-14-2005 05:18 AM
Re: process memory utilization???
And thanks to all for the assistance....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:32 AM
09-14-2005 05:32 AM
Re: process memory utilization???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 05:46 AM
09-14-2005 05:46 AM
Re: process memory utilization???
Alex.
(zero plz)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 06:00 AM
09-14-2005 06:00 AM
Re: process memory utilization???
Yep, looks the same. Everyday you learn something new.
And vsz and sz are the same if you calculate ~25MB. Like it was said, without shared memory and other stuff, only core image of the proc.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 10:32 AM
09-14-2005 10:32 AM