HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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