Operating System - HP-UX
1753913 Members
8914 Online
108810 Solutions
New Discussion юеВ

CPU, MEMORY AND SWAP USAGE

 
SOLVED
Go to solution
CharliePuyol
Advisor

CPU, MEMORY AND SWAP USAGE

I HAVE AN HPUX 11.31 SERVER, I WANT TO KNOW IS THERE IS A COMMAND THAT SHOWS ME:

- CPU TOTAL USAGE
- MEMORY TOTAL USAGE
- CPU USAGE PER PROCESS
- MEMORY USAGE PER PROCESS
- SWAP USAGE.

REGARDS,

CHARLES PUYOL
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: CPU, MEMORY AND SWAP USAGE

Hi Charles:

There is no need to type in all CAPITAL LETTERS.

Perhaps the best tool for HP-uX performance analysis is 'glance'. It will provide all of the statistics you want. In its absence:

You can also use 'sar' or 'top' to monitor CPU utilization.

Memory utilization can be measured with tools like 'vmstat' or 'top'.

Swap utilization can be viewed with 'swapinfo'. The page-out activity seen by 'vmstat' is also important to examine here.

As for CPU and/or memory utilization on a per-process basis, you can use something like:

# UNIX95= ps -ef -ovsz,pid,comm|sort -rnk3,3|more

...to sort the process from largest to smallest memory footprint.

# UNIX95= ps -ef -opid,uid,time|sort -rk3,3|more

Regards!

...JRF...
CharliePuyol
Advisor

Re: CPU, MEMORY AND SWAP USAGE

sorry for the capital letters, i was using my cellphone and i was in a hurry...
Nafez ALNajjar
Frequent Advisor

Re: CPU, MEMORY AND SWAP USAGE

Hi,

you can also try:
#gpm (graphical)
#glance (terminal)

HP GlancePlus is a powerful and easy-to-use online performance
diagnostic tool for HP-UX systems. It consists of two components: a
Motif-based program, "gpm", and a character mode program, "glance".
Renjus
Advisor

Re: CPU, MEMORY AND SWAP USAGE

Try This

1. top : which process is eating the CPU, CPU utilization

2. sar ├в u :├в Shows CPU activity

3. sar ├в w : The Memory Switching and Swapping Activity

4. vmstat : report virtual memory statistics




Renjus
Advisor

Re: CPU, MEMORY AND SWAP USAGE

Try This

1. top : which process is eating the CPU, CPU utilization

2. sar -u :Shows CPU activity

3. sar -w : The Memory Switching and Swapping Activity

4. vmstat : report virtual memory statistics