informatique:linux:monitoring_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:linux:monitoring_linux [2016/09/21 17:10] – [vnstat] pteu | informatique:linux:monitoring_linux [2020/04/12 13:29] – pteu | ||
---|---|---|---|
Line 23: | Line 23: | ||
<code bash> | <code bash> | ||
htop | htop | ||
+ | </ | ||
+ | |||
+ | ====pidstat==== | ||
+ | |||
+ | **pidstat** affiche l' | ||
+ | <code bash> | ||
+ | # " | ||
+ | pidstat -d -l 1 30 | ||
+ | </ | ||
+ | |||
+ | ====ps==== | ||
+ | |||
+ | <code bash> | ||
+ | # lister les processus bloqués en state=D (Disk sleep (uninterruptible)) | ||
+ | for x in `seq 1 1 10`; do ps -eo state, | ||
</ | </ | ||
Line 63: | Line 78: | ||
https:// | https:// | ||
+ | |||
+ | =====System===== | ||
+ | |||
+ | ====mpstat==== | ||
+ | |||
+ | <code bash> | ||
+ | mpstat -P ALL 5 | ||
+ | Linux 3.10.0-514.26.2.el7.x86_64 (ldri601z) 02/08/2018 _x86_64_ (8 CPU) | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | 10: | ||
+ | [..] | ||
+ | </ | ||
+ | |||
+ | ====vmstat==== | ||
+ | |||
+ | <code bash> | ||
+ | vmstat 1 | ||
+ | procs -----------memory------------ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | La première ligne n'est pas à prendre en compte puisqu' | ||
+ | |||
+ | Ici on voit un fort %age d' | ||
=====IO===== | =====IO===== | ||
+ | |||
+ | Voir les stats d'IO d'un processus : '' | ||
+ | |||
+ | ====iostat==== | ||
+ | |||
+ | <code bash> | ||
+ | iostat -x 2 5 | ||
+ | Device: | ||
+ | sda | ||
+ | sdb | ||
+ | sdc | ||
+ | </ | ||
====iotop==== | ====iotop==== | ||
+ | |||
<code bash> | <code bash> | ||
iotop -p PID -k | iotop -p PID -k | ||
+ | |||
+ | # afficher le cumul des IO des processus actifs | ||
+ | iotop -oa | ||
</ | </ | ||
Line 88: | Line 153: | ||
dnstop -4 eth0 | dnstop -4 eth0 | ||
</ | </ | ||
+ | |||
+ | |||
+ | =====Liens utiles===== | ||
+ | |||
+ | * https:// |
informatique/linux/monitoring_linux.txt · Last modified: 2021/01/17 16:12 by pteu