cancel
Showing results for 
Search instead for 
Did you mean: 

cpu & memory utilization

madhudeepan
Frequent Advisor

cpu & memory utilization

how to check the cpu and memeory utilization
12 REPLIES
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
Prashantj
Valued Contributor

Re: cpu & memory utilization

madhudeepan,

*UNIX95= ps -ef -o "vsz,pid,args" | sort -rn -k1 | head -n 5
*UNIX95= ps -e -o "user,pcpu,cpu,args" |sort -rn -k2 |head -n 5
*sar
*top
*glance
*swapinfo -tam

Hope this will help you

Prashant
Good judgment comes from experience and experience comes from bad judgment.
hsihsa
Occasional Visitor

Re: cpu & memory utilization

try vmstat for paging details...
Steven E. Protter
Exalted Contributor

Re: cpu & memory utilization

Shalom,

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

Full suite.

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