Operating System - HP-UX
1752701 Members
5518 Online
108789 Solutions
New Discussion юеВ

Re: cpu & memory utilization

 
madhudeepan
Frequent Advisor

cpu & memory utilization

how to check the cpu and memeory utilization
12 REPLIES 12
Sunny123_1
Esteemed Contributor

Re: cpu & memory utilization

Hi

You can use top and glance command


Regards
Sunny
Durvesh Mendhekar
Regular Advisor

Re: cpu & memory utilization

hi,

You can also use sar utility.

Regards,
durvesh
Jitesh purohit_1
Regular Advisor

Re: cpu & memory utilization

Hi

To check process memory usage, do:
UNIX95= ps -eo uid,pid,ppid,pcpu,state,sz,vsz,time,comm |sort -rnk7 |more

Thanks
Jitesh
Basheer_2
Trusted Contributor

Re: cpu & memory utilization

Hi Madhu,

If your operating system is FOUNDATION OPERATING ENVIRONMENT (FOE), then you are limited with using the old tradition tools that others have mentioned.

For Memory
vmstat 1 5
swapinfo -tam
dmesg

For CPU
sar

If your OS is EOE or MCOE, then there are specific tools like glance and glanceplus and glanceplus monitor (gui or cui)

if you have one of these
type
glance
or
gpm


to find out your OS type

swlist |grep -i operating
Suraj K Sankari
Honored Contributor

Re: cpu & memory utilization

Hi,

There are so many commands and utilities to see the utilization of CPU and Memory.
most of them are top, glance and sar.

#top
#glance -c # CPU detail
-a # All CPU detail (for SMP systems)

#sar -u 2 10 # Monitor CPU activity
-w 2 10 #Monitor swap space activity

Suraj
Taifur
Respected Contributor

Re: cpu & memory utilization

Hi,

You can use sar, glance for checking cpu & memory utilization.

Check man pages of sar and glance.

Rgds//
Taifur
Sajjad Sahir
Honored Contributor

Re: cpu & memory utilization


Dear Madhu

u can use top,sar,glance etc...

please see the man pages

thanks and regards

Sajjad Sahir
subodhbagade
Regular Advisor

Re: cpu & memory utilization

Hi,

>For cpu utilization use this command ---

# sar -Mu 5 5 (It shows the cpu utilization for 5 iteration after each 5 sec )

> For Memory utilization

#swapinfo


Regards,
Subodh