Operating System - HP-UX
1834905 Members
2793 Online
110071 Solutions
New Discussion

Re: Measure usage of resources

 
yc_2
Regular Advisor

Measure usage of resources

Hi,

Is there a way/command to measure the resources (CPU, memory) usage for an application/daemon such as OmniBack ?


Thanks in advance,
YC
8 REPLIES 8
Tom Geudens
Honored Contributor

Re: Measure usage of resources

Hi YC,
You can "define" applications in MeasureWare.
In order to do this you have to add definitions in /var/opt/perf/parm.
Example :
application = XpsEcs
user = ecs

This defines an application XpsEcs that contains the processes executed by ecs (other definitions and combinations are possible).

After the above definition you have to
mwa restart scope

In glance / measureware you can now see the resources used by this application.

Regards,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Steven Richards
Frequent Advisor

Re: Measure usage of resources

Hi,

Glance is probably the best tool which HP provide for examining the performance of a process, it allows you to drill down and look at indivdual processes and what they are doing.

Unfortuantely it is a product which requires a license to be installed. My knowledge of the product is limited but perhaps that may give you a starting point.

Hope this helps

regards

S.
A pint of vodka my good woman
Tim D Fulford
Honored Contributor

Re: Measure usage of resources

YC

glance - for IMMIDIATE resource usage
MeasureWare - historical resource usage

Both of those above require
a - licence $$$
b - configuration of /var/opt/perf/parm file (easy, but necessary)

alternatively, free tools
ps & top, lsof, tusc

the last two are available from hpux.connect.org.uk

regards

Tim
-
Paula J Frazer-Campbell
Honored Contributor

Re: Measure usage of resources

HI

Also look at SAR, man sar.

See the manpage of sa1(1M) on how to set up the collection of sar data


Also see:-

http://www.sarcheck.com

HTH

Paula
If you can spell SysAdmin then you is one - anon
Steven Gillard_2
Honored Contributor

Re: Measure usage of resources

If you don't want to buy the performance agent (measureware), the ps command can give you the CPU and memory usage of a process, eg:

UNIX95= ps -C inetd -o pid,vsz,pcpu,args

will give you this information for the inetd process.

Regards,
Steve
RAC_1
Honored Contributor

Re: Measure usage of resources

As told by other gurus, you can measure it with MWA. (Specifiy your applications in /var/opt/perf/parm file. You can then monitor it with glance -A. You can also use unix95 command.
There is no substitute to HARDWORK
doug mielke
Respected Contributor

Re: Measure usage of resources

if you go the free route (sar) don't forget to add to your scripting:

vmstat
iostat
swapinfo
netstat and / or
nfsstat

Even though I have Glance installed, I still refer to my sar -A history often.
It's very easy to set up and manage using a couple of cron scripts.
Tim Sanko
Trusted Contributor

Re: Measure usage of resources

YC,

Because I am cheap, I usae sar. Even where I have measureware, I run sar. It is free and gets me most of what I want.

This is the crontab entry for the performance shell. Run as you can tell
Hourly.

00 * * * * /root/SCRIPTS/performance.sh > /dev/null 2>&1

cat /root/SCRIPTS/performance.sh
Month=`/usr/bin/date +%m`
Day=`/usr/bin/date +%d`
Year=`/usr/bin/date +%y`
Hour=`/usr/bin/date +%H`
Minute=`/usr/bin/date +%M`
LOGFILE=/root/LOG/SAR/$Year$Month$Day-$Hour$Minute.sar

/usr/sbin/sar -A -o $LOGFILE 60 60 > /dev/nul &

/root/LOG/SAR is on a non-root volume.

This cron entry cleans up the old SAR.txt extracts: I also do the same for .gz which I gzip all .sar at night also.

00 5 * * 1-6 find /root/LOG/SAR -name '*.txt*' -mtime +4 -exec rm -f {} \;

I can get nearly everything because I send out everything to the sar.log...

Tim