Linux e Unix: Ferramentas de Monitoracao e Performance

From Wiki

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]]
# vmstat 
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

# vmstat  5
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

Exemplo AIX

# vmstat -lwt 5

I/O Statistics & Activity

  • iostat (Linux/AIX)
# sudo apt-get install sysstat
# iostat -x 
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