当前位置: 技术问答>linux和unix
如何察看UNIX的资源占用情况
来源: 互联网 发布时间:2015-05-07
本文导语: 操作系统:SUN UNIX 问题:如何察看UNIX的资源占用情况 | How to Check Unix Resources By Alexander Geldutes To check memory: Sun vmstat HP vmstat -n IBM /bin/vmstat Linux xosview To check disk usage/statis...
操作系统:SUN UNIX
问题:如何察看UNIX的资源占用情况
问题:如何察看UNIX的资源占用情况
|
How to Check Unix Resources
By Alexander Geldutes
To check memory:
Sun vmstat
HP vmstat -n
IBM /bin/vmstat
Linux xosview
To check disk usage/statistics:
df -k
iostat
sar -d
To check CPU usage:
Sun: sar -u
IBM: ps av
IBM: iostat 3 20
Linux: xosview
To check CPU time:
Sun: /usr/bin/mpstat
HP: /usr/sbin/sar -M 5 5
IBM: vmstat
To check number of CPU:
Sun: /usr/bin/mpstat
HP: /usr/sbin/sar -M 2 2
IBM: /usr/sbin/bindprocessor -q
Linux: xosview
To check swap space size and it's usage:
Sun: /etc/swap -1
Sun: /etc/swap -s
HP: /etc/swapinfo -m
IBM: lsps -a
Linux: free -t
By Alexander Geldutes
To check memory:
Sun vmstat
HP vmstat -n
IBM /bin/vmstat
Linux xosview
To check disk usage/statistics:
df -k
iostat
sar -d
To check CPU usage:
Sun: sar -u
IBM: ps av
IBM: iostat 3 20
Linux: xosview
To check CPU time:
Sun: /usr/bin/mpstat
HP: /usr/sbin/sar -M 5 5
IBM: vmstat
To check number of CPU:
Sun: /usr/bin/mpstat
HP: /usr/sbin/sar -M 2 2
IBM: /usr/sbin/bindprocessor -q
Linux: xosview
To check swap space size and it's usage:
Sun: /etc/swap -1
Sun: /etc/swap -s
HP: /etc/swapinfo -m
IBM: lsps -a
Linux: free -t