- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory usage
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
тАО01-23-2003 12:51 AM
тАО01-23-2003 12:51 AM
Memory usage
How do I monitor memory usage on HP-UX 11.0 cluster system. I have no X display.
Many thanks in advance,
Nadeem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 01:01 AM
тАО01-23-2003 01:01 AM
Re: Memory usage
get hold of glance
It has a non graphic option and is a very useful tool
Anyway what do you want to monitor exactly
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 01:02 AM
тАО01-23-2003 01:02 AM
Re: Memory usage
Go through the man pages of "vmstat" you can use vmstat to see the memory usage also swapinfo will help you getting memory and swaping info.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 01:04 AM
тАО01-23-2003 01:04 AM
Re: Memory usage
Run this command
#top
Wonderful utility which gives memory usage stats online.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 01:17 AM
тАО01-23-2003 01:17 AM
Re: Memory usage
use vmstat ,
look for "free" wich is free pages number,
page size is 4k,so calculate 4 x "free".
Also put attention to 'po' in vmstat,means page
outs to disks ie moves of pages from memory to
disk(s).Glance however is much more nice although isn't free.It can work in text-menue
(no X needed).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 01:33 AM
тАО01-23-2003 01:33 AM
Re: Memory usage
This script collects a lot of info as an example
#!/usr/bin/ksh
#Do this
#---------
/bin/rm /tmp/sarlis /tmp/toplis 2>/dev/null
top -d5 -n60 -f /tmp/toplis&
sar -A -o /tmp/sarlis 5 10 >/dev/null 2>&1
# parameter = /tmp/sarlis
#Mail me /tmp/toplis
file=/tmp/sarlis
wait
xx="u d q b w c a y v m"
for f in $xx
do
echo "sar -$f -f $file" >> /tmp/toplis
echo "======================================================================
========" >> /tmp/toplis
sar -$f -f $file >> /tmp/toplis
echo "======================================================================
========" >> /tmp/toplis
done
see /tmp/toplis and man sar
To see per process
#!/usr/bin/ksh
#
# Show processes sorted by size of core image
#
# Usage:
# psram [ quantity ]
#
# where quantity is the top RAM processes to show (default is 20)
#
set -u
if [ $# -gt 0 ]
then
TOPPROCS=$1
else
TOPPROCS=20
fi
MYNAME=$(basename $0)
TEMPFILE=/var/tmp/$MYNAME.$$
trap `rm -f $TEMPFILE > /dev/null 2>&1` 0 1 2 3 15
UNIX95= ps -e -o ruser,vsz,pid,args > $TEMPFILE
head -1 $TEMPFILE
DASH5="-----"
DASH25="$DASH5$DASH5$DASH5$DASH5$DASH5"
echo "$DASH5---- $DASH5- $DASH5 $DASH25$DASH25"
grep -v "VSZ COMMAND" $TEMPFILE | cut -c -78 | sort -rn -k2 | head -${TOPPROCS}
rm $TEMPFILE > /dev/null 2>&1
#### END OF SCRIPT
Steve Steel