Linux e Unix: Ferramentas de Monitoracao e Performance

Informações sobre processos - Information about process

 * top (Linux)
 * nmon (Linux)
 * topas (AIX)
 * topas-nmon (AIX)

VM Statistics & CPU

 * vmstat (Linux/AIX)

Exemplo Linux:

Usage: vmstat [-V] [-n] [delay [count]] procs ---memory-- ---swap-- -io -system-- cpu r b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa 2  0      0 1226172  94704 991204    0    0    41    18  423  791  5  3 91  1 procs ---memory-- ---swap-- -io -system-- cpu r b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa 0  0      0 1226056  94920 991244    0    0    41    18  423  790  5  3 91  1 0 0      0 1226048  94936 991244    0    0     0    12  479  802  1  1 97  1 0  0      0 1225800  94936 991244    0    0     0     1  513  849  1  1 97  0
 * 1) vmstat
 * 1) vmstat  5

Exemplo AIX
 * 1) vmstat -lwt 5

I/O Statistics & Activity

 * iostat (Linux/AIX)

Linux 2.6.32-24-generic (ebasso) 	16-09-2010 	_i686_	(2 CPU) avg-cpu: %user   %nice %system %iowait  %steal   %idle 5,02   0,23    2,92    1,18    0,00   90,65 Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm   %util sda             14,34     7,04    2,30    2,79   162,32    77,42    47,04     0,13   25,97   5,01    2,56 120 coletas a cada 30 segundos
 * 1) sudo apt-get install sysstat
 * 2) iostat -x
 * 1) iostat 30 120 > iostat.out &

Network Statistics & Activity

 * netstat (Linux/AIX)

Tabela de Interfaces do Kernel Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0      1500 0    181181      0      0 0         24087      0      0      0 BMRU lo       16436 0         9      0      0 0             9      0      0      0 LRU tun0      1362 0     14411      0      0 0         14792      0      0      0 MOPRU vmnet1    1500 0         0      0      0 0           489      0      0      0 BMRU vmnet8    1500 0         0      0      0 0           489      0      0      0 BMRU
 * 1) netstat -i