Hi,
i have joined newly as a hp-ux admin... previously worked in linux environment
can anyone tell me how to monitor memory and cpu utilization in hpux??
hp-ux is not as flexible as linux as i understand... please help me out by giving the commands needed and way of troubleshooting if the problem arises.
Thanks you all... im in a hurry please help me out
---------- Post updated at 08:12 PM ---------- Previous update was at 06:06 PM ----------
I normaly use top,sar ,vmstat commands....
but in hp-ux the top command options are not available ,we can't toggle or sort out the processes based on memory or CPU .i.e the Shift+o doesnt work in hp-ux.
Thanks that worked
im surprised to see that most of the servers arer running above 95% memory utilization.
A production server is showing 100%..... is this a serious concern??
The 5% usage in dev is certainly a concern. Not because of a limit - the 77% is still okay. But performance can suffer already. I am not used to the glance.
But the portable vmstat has pi/po or si/so to indicate current swapping.
vmstat 3
If these are high then performance is impacted. If this happens frequently then a memory upgrade is advisable.
---------- Post updated at 05:55 AM ---------- Previous update was at 05:37 AM ----------
A process can have a memory leak.
List the top 10 memory consumers
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
2 0 0 1445470 10682 1 0 4 0 0 0 13 4569 4127 413 0 0 100
2 0 0 1445470 10666 0 0 3 0 0 0 7
And repeat this after one hour, compare the first two columns (VSZ and SZ) to see if something is growing.
Your vmstat output:
Because pi is greater than 0 it is really short of memory. The current memory image does not fit into RAM so it needs to page-in from disk - performance suffers.
As long po is 0 the memory image does not grow further (no page-out to disk).
If the first two columns in the ps output do not permanently rise then it's okay (no memory leak).
More RAM would speed up your system I think.
But you should also ask the "adviser" that is built into glance.
-- xglance is more user-friendly than glance. Here is a description of glance and xglance.