- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Viewing contents 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
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
02-08-2002 12:47 PM
02-08-2002 12:47 PM
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 12:51 PM
02-08-2002 12:51 PM
Re: Viewing contents of memory
You can use HP's GlancePlus software for getting a complete memory usage/analysis.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 12:51 PM
02-08-2002 12:51 PM
Re: Viewing contents of memory
# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 12:52 PM
02-08-2002 12:52 PM
Re: Viewing contents of memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 01:17 PM
02-08-2002 01:17 PM
Re: Viewing contents of memory
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 01:22 PM
02-08-2002 01:22 PM
Re: Viewing contents of memory
From any screen in 'glance' you can enter "s" to select a pid. Once selected, you can see some memory stats as well as other things.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 01:24 PM
02-08-2002 01:24 PM
Re: Viewing contents of memory
Thanks for the additional information. Is there any way to script so I can see all pids memory usage?
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 03:28 PM
02-08-2002 03:28 PM
SolutionThe easiest way to evaluate memory on a per-process basis to use this. The 'sed' strips the header returned with the output and the sort ranks the list in descending 'vsz' order. Have a look a the man pages for 'ps' for more information and the interpretaton of the fields assoicated with the '-o' flag. You can add information with other '-o' arguments.
# UNIX95= ps -e -o ruser,vsz,pid,args|sed '1d'|sort -rnk2
Note the XPG4 (UNIX95) variable is armed only for the 'ps' command line. There is a blank after the UNIX95= without any semicolon.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 07:47 PM
02-08-2002 07:47 PM
Re: Viewing contents of memory
let x=$(grep -i physical: /var/adm/syslog/syslog.log | head -1 | awk '{print $7}
')/1048
let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000
let free=100000/$x*$z
let free=$free/1000
let free=100-$free
echo "$x Mb physical memory \n$z Mb memory free \n$free % used"
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2002 07:54 PM
02-08-2002 07:54 PM
Re: Viewing contents of memory
Memory structures include shared memory segments and semaphores.
Run the following to account for shared memory and semaphores:
For shared memory utilisation,
# ipcs -b -m
For semaphores utilisation,
# ipcs -b -s
Hope this helps. Regards.
Steven Sim Kok Leong