1819805 Members
3091 Online
109607 Solutions
New Discussion юеВ

VM Monitoring

 
Klusek
Occasional Visitor

VM Monitoring

Hi all,

I have a question according monitoring memory on hp ux systems. How do you monitoring your memory on servers: vmstat, glance ?

Best Regars,
Krzysztof
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: VM Monitoring

Shalom,

vmstat works.

glance works, costs money.

swapinfo -tam can help.

sar suite
http://www.hpux.ws/?p=6

Memory leak detector:
http://www.hpux.ws/?p=8

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Klusek
Occasional Visitor

Re: VM Monitoring

Could you give me some more information:

But I need to start command from user not root.

HP-UX:
grep Physical /var/adm/syslog/syslog.log
/usr/sbin/swapinfo -tam


Very nice link:

http://sysdigg.blogspot.com/2008/01/how-to-check-memory-usage-in-hp-ux.html

For example:
# kctune -q vps_pagesize
Tunable Value Expression
vps_pagesize 4 Default

pages are 4KB.

# vmstat 1 2
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
1 0 0 916139 626050 252 55 15 0 0 0 0 4793 47483 4593 3 6 90
1 0 0 916139 626237 18 3 0 0 0 0 0 2025 40549 334 2 0 98

free pages on the system: 626237.

Free RAM: 626237 x 4KB = 2504948 KB, 2446 MB.

Glance Memory Reports says:
Total VM : 4.3gb Sys Mem : 1.6gb User Mem: 3.2gb Phys Mem: 7.9gb
Active VM: 4.0gb Buf Cache: 813mb Free Mem: 2.4gb

But Total VM is important to me and Active VM


Regards
Krzysztof

Sajjad Sahir
Honored Contributor

Re: VM Monitoring

swapinfo -tam u can use for monitoring
memory

it will give used memory total memory free memory etc.. u can easily understand from there it is in which logical volume

VK2COT
Honored Contributor

Re: VM Monitoring

Hello,

Firstly, you can run standard HP-UX tools
in HP VM guests and host itself without any problem. For example, there is nothing wrong
to run GlancePlus, vmstat, and so on in each
HP VM guest directly.

Typical software that can run on VM host includes system performance monitoring tools
(GlancePlus, Measureware, OpenView Operations Agent)...

In addition, here are some options.

a) Starting with version C.04.60.000 Glance
has a new option "-V" which allows to gather
some basic online performance data from HP VM host. These include configured and current
entitlements, logical and physical CPU usage
and guest uptime. Therefore:

# glance -V

b) Since each VM is manifested as a Unix
process running on the VM host, the physical
resources (including CPU, I/O, and so on)
consumed by a given VM can be identified by
monitoring the process associated with that
VM.

These processes have the executable name
hpvmapp and typically have the option "├в d"
whose argument name is the name of the VM. For example, the process with command
"hpvmapp ├в d myvm1" corresponds to the
virtual machine named "myvm1".

c) Simple tools such as ps(1) and top(1) can
be used on the VM host to monitor a virtual
machine by identifying the process ID for a
given VM. For example, the PID for some VM
can be identified from the output of:

# ps ├в fu root | grep hpvmapp

... and then used with top to identify the resources being consumed by that VM.

d) More elegant solutions can be achieved
with tools such as HP├в s GlancePlus.

Each VM may be defined as an OpenView
application by creating an application
definition in the OpenView parameter file
/var/opt/perf/parm. For example, inserting
the following application definitions for
the virtual machines named vm1, vm2, and vm3
in /var/opt/perf/parm enables GlancePlus to
identify them as applications:

application vm1
cmd = *hpvmapp -d*vm1

application vm2
cmd = *hpvmapp -d*vm2

application vm3
cmd = *hpvmapp -d*vm3

This makes it easy to track the resource
utilization of each VM through Glance├в s
Application List reporting functionality.

e) HP WTEC labs have an unsupported tool
called hpvmsar.

f) There is another lab tool called kmeminfo.

g) In each VM guest, to check dynamic memory
you can run:

# hpvmmgmt -V -l ram

or from the HP VM Host:

# hpvmstatus -V -P

h) If you are using Java in VM, there is
HPJmeter toolkit.

I am sure there are more possibilities :)

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Klusek
Occasional Visitor

Re: VM Monitoring

But there is no way to get that caind of information from system. I mean not comercial lika glance. I need to install software to get statistic. Meybe that caind of information can be take from SNMP

Krzysztof