- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Average 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
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
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
тАО07-01-2009 10:53 AM
тАО07-01-2009 10:53 AM
please help in taking the average memory utilization of HP-UX 11.00 server for one week. As for disk and CPU usage, we can have from sar command. which command we will use for memory.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 11:11 AM
тАО07-01-2009 11:11 AM
Re: Average memory utilization
The commands sar and vmstat
For example, sample CPU utilisation every 2 seconds for 5 iterations:
sar -u 2 5
or For memory utilisation every 2 seconds for 5 iterations:
vmstat 2 5
look at the avm and free fields
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 11:12 AM
тАО07-01-2009 11:12 AM
Re: Average memory utilization
use glance or gpm ( gui )
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 11:19 AM
тАО07-01-2009 11:19 AM
Re: Average memory utilization
But i dont have the glance installed in my server...
and if vmstat helps, then i need it for one complete week. By anyway, i can add it to cron or any other way.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 11:22 AM
тАО07-01-2009 11:22 AM
Re: Average memory utilization
i don't like top but in some cases could be used.
maybe the top will help you.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 11:47 AM
тАО07-01-2009 11:47 AM
Re: Average memory utilization
the sar commands will work.
This script will give you a complete performance snapshot using sar that will meet your needs:
http://www.hpux.ws/?p=6
No cost uses sar
production code.
Glance is available on your OS CD for 60 day evaluation.
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
тАО07-01-2009 02:11 PM
тАО07-01-2009 02:11 PM
Re: Average memory utilization
Memory: 772800K (271340K) real, 585612K (233832K) virtual, 669856K free Page# 1/15
can you please tell me in detail, what each field is showing. My server RAM is 4096MB, but i have not seen anything in GB in this output.
Plz suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 02:26 PM
тАО07-01-2009 02:26 PM
Re: Average memory utilization
On of the "best" tools for doing what you want to do is 'glance' and 'measureware'. The reason is that 'glance' is architected to "understand" the HP-UX kernel. 'top' and 'sar' are more generic UNIX tools. With 'glance'/'measureware' you can collect and graph long term metrics,
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 02:31 PM
тАО07-01-2009 02:31 PM
Re: Average memory utilization
but i am trying with glance too on one server and trying to extract the data for today, but it is replying with the error :-
# ./extract -xp -r /tmp/moni -g -b today 14:00 -e today 15:00 -f stdout
Unable to read record from logfile, size returned = 0
Unable to read record from logfile, size returned = 0
Memory fault(coredump)
Plz suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 03:57 PM
тАО07-01-2009 03:57 PM
Re: Average memory utilization
>>>>Unable to read record from logfile, size returned = 0
>>>>Memory fault(coredump)
Check the status of measureware daemons:
#mwa status
Check the log files in:
/var/opt/perf/datafiles/log*
if its showing zero in size; try restarting mwa:
#mwa stop ; mwa start
Let me know the outcome.
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 04:22 PM
тАО07-01-2009 04:22 PM
Re: Average memory utilization
Here are the outputs of the commands :-
root # mwa status
MeasureWare scope status:
WARNING: scopeux is not active (MWA data collector)
MeasureWare background daemon status:
(Should always be running when the system is up)
Running ttd (Transaction Tracker daemon) pid 1372
MeasureWare server status:
WARNING: alarmgen is not active (alarm generator)
WARNING: agdbserver is not active (alarm database server)
Running perflbd (location broker) pid 28562
The following data sources have running repository servers:
PID DATA SOURCE
Running rep_server 29803 SCOPE
root #
root # cd /var/opt/perf/datafiles
root # ll log*
-rw-r--r-- 1 root root 3348296 Jul 1 18:55 logappl
-rw-r--r-- 1 root root 10431046 Jul 1 18:55 logdev
-rw-r--r-- 1 root root 1391798 Jul 1 18:55 logglob
-rw-r--r-- 1 root root 3192 Jul 1 18:55 logindx
-rw-r--r-- 1 root root 20882164 Jul 1 18:55 logproc
-rw-r--r-- 1 root root 3954348 Jul 1 18:55 logtran
root # date
Wed Jul 1 19:18:37 CDT 2009
root #
root # ps -ef | grep -i mwa
root 4611 4284 0 19:19:33 pts/tb 0:00 grep -i mwa
root #
One query, i grep for mwa process, but did not find any. then how come the log files are updated till 1st July. Plz put some light on it.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 05:34 PM
тАО07-01-2009 05:34 PM
Re: Average memory utilization
>>>>WARNING: scopeux is not active (MWA data collector)
>>>>WARNING: alarmgen is not active (alarm generator)
>>>>WARNING: agdbserver is not active (alarm database server)
Try restarting mwa:
mwa stop ; mwa start
If its not solving the problem:
Then first copy all log files to different location and empty the logs.
ll /var/opt/perf/datafiles/log*
Try restarting mwa again:
Let me know hows the extract output.
Good Luck!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 06:01 PM
тАО07-01-2009 06:01 PM
Re: Average memory utilization
I use a utility
memdetail . I think i got the utility from this forum. sample output below
You could put this in crontab .
The output from this is the same as glance provides
memdetail
Memory Stat total used avail %used
physical 16357.0 11153.1 5203.9 68%
active virtual 5279.8 4959.4 320.4 94%
active real 4438.3 4203.1 235.1 95%
memory swap 16357.0 6995.2 9361.8 43%
device swap 16384.0 4662.4 11721.6 28%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2009 03:25 PM
тАО07-02-2009 03:25 PM
Re: Average memory utilization
Can you please provide the full path to this memdetail utility. and the syntax to use it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2009 03:46 PM
тАО07-02-2009 03:46 PM
Re: Average memory utilization
Maybe you could open a thred asking this ?
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2009 04:16 PM
тАО07-02-2009 04:16 PM
Re: Average memory utilization
Can anyone help in getting this memdetail utility and usage syntax, which Karl is telling about.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2009 10:49 PM
тАО07-02-2009 10:49 PM
SolutionUsing a forums search finds Geoff's reply:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1179723
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 08:48 AM
тАО07-06-2009 08:48 AM
Re: Average memory utilization
i got what is required... Really helpful..full points.
Thanks everyone for your inputs on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 08:52 AM
тАО07-06-2009 08:52 AM
Re: Average memory utilization
Thanks