Problème de load en direct !

Consultez la formation à Google Analytics de WebRankInfo / Ranking Metrics

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Problème de load en direct !

Message le Dim Mar 09, 2008 22:13

Bonsoir,

J'ai un problème en ce moment même sur mon serveur. J'y héberge un site qui tourne normalement depuis plusieurs mois. Ce soir le nombre de visiteurs semble normal mais le serveur est (pour la première fois en 5 mois) très lent.

Le load explose complètement, il est actuellement à 120 et il grimpe ! Alors que le CPU usage est autour de 2%. Avec 3 running processes et 380 sleeping. Je ne comprends pas ce qui se passe...

Sauriez-vous ce que je peux faire pour comprendre d'où vient cette charge soudaine et très violente ?

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Dim Mar 09, 2008 22:19

je précise que le CPU tourne à 2% usage et 95% wa !!!
et toujours un load average à 120...


Ron56
WRInaute passionné
WRInaute passionné
 
Messages: 706
Inscription: Dim Nov 20, 2005 20:05

Message le Dim Mar 09, 2008 22:23

Un top pour avoir un apercu des process , un test du débit du disque voir si ca n'est pas ca qui ralenti la machine (paquet hdparm et apercu avec la commande hdparm -t /dev/<sda ou hda>)


Pour te donner une idée, sur mon pc de bureau : Timing buffered disk reads: 52 MB in 3.16 seconds = 16.48 MB/sec


Ron

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Dim Mar 09, 2008 22:27

les process sont classiques et très peu gourmands en cpu :

que des

php
httpd
init
kswapd0
top

c'est tout. Rien d'anormal de ce côté là


Julia41
WRInaute impliqué
WRInaute impliqué
 
Messages: 464
Inscription: Ven Aoû 31, 2007 21:17

Message le Dim Mar 09, 2008 22:56

Rien de spécial dans les logs d'erreur de papache ?

jcaron
WRInaute accro
WRInaute accro
 
Messages: 1197
Inscription: Ven Fév 13, 2004 20:33

Message le Lun Mar 10, 2008 0:28

malopo a écrit:je précise que le CPU tourne à 2% usage et 95% wa !!!
et toujours un load average à 120...


Je dirais que c'est un problème de saturation des accès disques, le principal coupable étant généralement un serveur sql...

Voir vmstat et/ou iostat et/ou ps axl pour avoir en savoir plus, et regarder les requêtes SQL en cours... Voir les logs mysqld aussi.

Jacques.


Ron56
WRInaute passionné
WRInaute passionné
 
Messages: 706
Inscription: Dim Nov 20, 2005 20:05

Message le Lun Mar 10, 2008 7:59

jcaron a écrit:
malopo a écrit:je précise que le CPU tourne à 2% usage et 95% wa !!!
et toujours un load average à 120...


Je dirais que c'est un problème de saturation des accès disques, le principal coupable étant généralement un serveur sql...

Voir vmstat et/ou iostat et/ou ps axl pour avoir en savoir plus, et regarder les requêtes SQL en cours... Voir les logs mysqld aussi.

Jacques.


Il dit qu'il n'as pas de process bouffants beaucoup de ressources donc je doute que ca soit un problème logiciel

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Lun Mar 10, 2008 9:55

la load est finalement retombée, sans que j'ai vraiment compris se qui s'était passé.

Ce n'était pas un problème de serveur sql vu que la partie sql est gérée par un autre serveur. Le serveur qui a eu un problème est juste mon serveur front-end php + images et éléments statiques.

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Mer Mar 19, 2008 19:33

Le problème réapparait, à nouveau à une heure de pointe (load average 125), cpu 3% usage et 92% waiting...
le serveur répond très très lentement.

j'ai fait un vmstat :
procs --------------memory----------- -swap- --io--- --system-- ------cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa
0 105 314608 5076 1320 16256 1 1 1 1 1 2 14 3 82 1


Ron56
WRInaute passionné
WRInaute passionné
 
Messages: 706
Inscription: Dim Nov 20, 2005 20:05

Message le Mer Mar 19, 2008 19:37

Test ton disque avec hdparm pour voir ...

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Mer Mar 19, 2008 19:37

je réécrit le résultat du vmstat en alignant mieux :
procs --------------memory----------- -swap- --io--- --system-- ------cpu------
r ...b... swpd ..free buff ...cache....... si so ...bi bo .....in cs .......us sy id wa
0 105 314608 5076 1320 16256 ........1 1 ....1.. 1 ..... 1 2 .........14 3 82 1

j'ai aussi fait un hdparm -t /dev/hda
qui donne

Timing buffered disk reads : 2 MB in 22.19 seconds = 92.28 kB/sec
c'est pas la fête !

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Mer Mar 19, 2008 20:15

je viens de découvrir que pendant cette période de "pointe", il y a tout d'un coup beaucoup d'erreurs apache :

des
mysql_connect(): Lost connection to MySQL serveur during query
mysql_select_db(): Access denied for user ...
mysql_select_db(): A link to the server could not be established
mysql_query(): supplied argument is not a valid MySQL-Link resource
etc...

sachant que le serveur MySQL est un autre serveur qui lui n'avait aucun problème de charge pendant cette période.

c'est peut-être la cause du problème (si le serveur MySQL reçoit trop de requêtes depuis le serveur php et qu'il commence à les refuser)
ou peut-être la conséquence du problème (le serveur php est tellement lent qu'il n'arrive pas à établir des connexions avec le serveur mysql d'où erreurs)

jcaron
WRInaute accro
WRInaute accro
 
Messages: 1197
Inscription: Ven Fév 13, 2004 20:33

Message le Mer Mar 19, 2008 21:21

malopo a écrit:je réécrit le résultat du vmstat en alignant mieux :
procs --------------memory----------- -swap- --io--- --system-- ------cpu------
r ...b... swpd ..free buff ...cache....... si so ...bi bo .....in cs .......us sy id wa
0 105 314608 5076 1320 16256 ........1 1 ....1.. 1 ..... 1 2 .........14 3 82 1


vmstat tout court ça donne juste la moyenne depuis le démarrage de la machine, c'est pas top utile. Fais un vmstat 5 5 par exemple, ça te donnera les mesures sur 5 intervalles de 5 secondes.

malopo a écrit:j'ai aussi fait un hdparm -t /dev/hda
qui donne

Timing buffered disk reads : 2 MB in 22.19 seconds = 92.28 kB/sec
c'est pas la fête !


Il y a clairement un problème de saturation des accès disque, soit parce que la machine swappe, soit parce que quelque chose (j'ai tendance à penser plein de trucs) font plein d'accès disque.

On va voir ce que dit vmstat, mais il y aura soit des nombres élevés dans les colonnes swap, soit dans les colonnes io. Dans le premier cas, ça veut dire que tu as trop de processus ou des processus qui consomment trop de RAM chacun. Ca peut être un problème de config Apache tout con dans ce cas, ou un réel manque de ressources sur la machine. Le résultat d'un top (complet) et un ps -axl (complet) seraient utiles pour diagnostiquer.

Dans le deuxième cas, il va falloir isoler le ou les processus qui font beaucoup d'accès disque. Sous FreeBSD on pourrait voir ça avec un top -mio, mais je ne sais pas comment on fait sous Linux.

Jacques.

malopo
WRInaute discret
WRInaute discret
 
Messages: 61
Inscription: Ven Juil 06, 2007 7:48

Message le Mer Mar 19, 2008 21:35

après 10-20 minutes, la charge est retombée à des valeurs plus normales (comme tous les soirs à l'heure de pointe).

j'ai fait un vmstat 5 5 (je ne sais pas si c'est très indicatif vu que la charge est normale maintenant), mais pour info ça donne (en moyennant les 5 résultats) :

---swap--- -----io-----
si ..... so ---bi -----bo
0 ...... 0 .....30.......180

donc clairement beaucoup de io et peu de swap.
Maintenant un ps axl me donne :
Code: Tout sélectionner
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0     1     0  15   0   1480   216 -      Ss   ?          0:09 init [3]       
1     0     2     1 -100  -      0     0 migrat S    ?          0:00 [migration/0]
1     0     3     1  34  19      0     0 ksofti SN   ?          0:01 [ksoftirqd/0]
1     0     4     1  10  -5      0     0 worker S<   ?          0:00 [events/0]
1     0     5     1  19  -5      0     0 worker S<   ?          0:00 [khelper]
1     0     6     1  20  -5      0     0 worker S<   ?          0:00 [kthread]
1     0    65     6  10  -5      0     0 worker S<   ?          0:33 [kblockd/0]
1     0    66     6  20  -5      0     0 worker S<   ?          0:00 [kacpid]
1     0   141     6  20  -5      0     0 worker S<   ?          0:00 [ata/0]
1     0   142     6  20  -5      0     0 worker S<   ?          0:00 [ata_aux]
1     0   143     6  20  -5      0     0 worker S<   ?          0:00 [ksuspend_usbd]
1     0   146     6  10  -5      0     0 hub_th S<   ?          0:00 [khubd]
1     0   148     6  10  -5      0     0 serio_ S<   ?          0:00 [kseriod]
1     0   173     6  10  -5      0     0 kswapd S<   ?          1:46 [kswapd0]
1     0   174     6  20  -5      0     0 worker S<   ?          0:00 [aio/0]
1     0   175     6  20  -5      0     0 worker S<   ?          0:00 [xfslogd/0]
1     0   176     6  20  -5      0     0 worker S<   ?          0:00 [xfsdatad/0]
1     0   846     6  12  -5      0     0 worker S<   ?          0:00 [kpsmoused]
1     0   850     6  11  -5      0     0 worker S<   ?          0:00 [kcryptd/0]
1     0   857     6  10  -5      0     0 kjourn S<   ?         13:27 [kjournald]
1     0   969     6  10  -5      0     0 kjourn S<   ?          9:35 [kjournald]
5     0  1644     1  16   0   1824   520 ext3_j Ss   ?          1:06 /usr/sbin/syslog-ng
4    60  2456     1  18   0  50100  1088 -      Ss   ?         10:05 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
1    60  2461  2456  15   0  50100  1088 ipt_do S    ?         12:23 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
1    60  2462  2461  15   0  50100  1088 rt_sig S    ?         18:27 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
1    60  2463  2461  25   0  50100  1088 rt_sig S    ?          0:00 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
4   507  2502     1  16   0   1504   232 -      S    ?         10:30 qmail-send
0     0  2503     1  18   0   1324    84 pipe_w S    ?          0:29 /usr/local/bin/tai64n
4   503  2504     1  18   0   1472   184 pipe_w S    ?          0:47 /usr/local/bin/multilog /var/log/qmail/
4     0  2505     1  15   0   1536   220 345371 S    ?          0:00 tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup  /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
0     0  2506     1  24   0   1324    64 pipe_w S    ?          0:00 /usr/local/bin/tai64n
4   503  2507     1  24   0   1344    84 pipe_w S    ?          0:00 /usr/local/bin/multilog /var/log/qmailpop3/
4   508  2508     1  15   0   1536   224 345371 S    ?          0:01 tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u508 -g503 0 smtp /var/qmail/bin/qmail-smtpd
0     0  2509     1  18   0   1324    84 pipe_w S    ?          0:00 /usr/local/bin/tai64n
4   503  2510     1  18   0   1472   156 pipe_w S    ?          0:00 /usr/local/bin/multilog /var/log/qmailsmtp/
0     0  2551  2502  17   0   1472   168 -      S    ?          0:29 qmail-lspawn ./Maildir/
4   506  2552  2502  15   0  10444   240 -      S    ?          0:23 qmail-rspawn
4   505  2553  2502  18   0   1460   168 pipe_w S    ?          0:27 qmail-clean
5     0  2555     1  18   0   3404   372 -      Ss   ?          0:28 /usr/sbin/sshd
5     0  2684     1  16   0   2852   688 -      Ss   ?        105:35 /usr/sbin/collectd
1     0  2751     1  23   0   1464   152 pipe_w S    ?          0:00 /usr/sbin/courierlogger -pid=/var/run/authdaemon.pid -start /usr/lib/courier/courier-authlib/authdaemond
4     0  2752  2751  18   0   1976   228 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
5     0  2774     1  21   0   1560   180 -      S    ?          0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/sbin/courier-imapd Maildir
0     0  2776     1  18   0   1468   240 pipe_w S    ?          0:00 /usr/lib/courier-imap/courierlogger imapd
1     0  2803  2752  18   0   1976    88 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
1     0  2804  2752  18   0   1976    88 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
1     0  2805  2752  18   0   1976    88 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
1     0  2806  2752  18   0   1976    88 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
1     0  2807  2752  18   0   1976    88 -      S    ?          0:00 /usr/lib/courier/courier-authlib/authdaemond
5 65534  2860     1  15   0   5376   524 -      Ss   ?          0:06 proftpd: (accepting connections)     
5     0  2938     1  15   0  22388  2400 -      Ss   ?          0:37 /usr/sbin/spamd -d -r /var/run/spamd/spamd.pid -m 5 -H -u qscand -v -x --siteconfigpath=/etc/spamassassin/local.cf
1     0  2983     1  25   0   1464   116 pipe_w S    ?          0:00 /usr/sbin/courierlogger -pid=/usr/lib/sqwebmail/var/run/sqwebmaild.pid -facility=mail -start /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
0     0  2984  2983  25   0   3408   132 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3021     1  25   0   3408    52 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3023     1  25   0   3408    52 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3025     1  25   0   3408    52 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3027     1  25   0   3408    52 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3029     1  25   0   3408    52 -      S    ?          0:00 /usr/lib/sqwebmail/libexec/sqwebmail/sqwebmaild
1     0  3030     1  15   0   1732   336 -      Ss   ?          0:16 /usr/sbin/cron
5     0  3068     1  -2   -   1524  1524 -      SLs  ?          0:00 /usr/sbin/watchdog
0     0  3144     1  18   0   1476   396 -      Ss+  tty1       0:00 /sbin/agetty 38400 tty1 linux
0     0  3145     1  18   0   1476   396 -      Ss+  tty2       0:00 /sbin/agetty 38400 tty2 linux
0     0  3146     1  18   0   1476   396 -      Ss+  tty3       0:00 /sbin/agetty 38400 tty3 linux
0     0  3147     1  18   0   1476   396 -      Ss+  tty4       0:00 /sbin/agetty 38400 tty4 linux
0     0  3148     1  18   0   1476   396 -      Ss+  tty5       0:00 /sbin/agetty 38400 tty5 linux
0     0  3149     1  18   0   1476   396 -      Ss+  tty6       0:00 /sbin/agetty 38400 tty6 linux
5 65534  3412 16577  15   0   6264  2368 ext3_m S    ?          0:01 /usr/local/apache/bin/httpd -D SSL -k start
5 65534  4133 16577  18   0   6284  2384 sis900 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534  7252 16577  15   0   6236  2280 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5    40  8994     1  15   0   6376  2940 -      Ss   ?        119:50 /usr/sbin/named -u named -n 1
5 65534  9369 16577  15   0   6240  2304 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534  9977 16577  15   0   6056  2120 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 11812 16577  15   0   6236  2316 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 12245 16577  15   0   5984  2012 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
0   506 13004  2552  21   0   2800   824 1      S    ?          0:00 qmail-remote yahoo.com info@---.com ---@yahoo.com
5 65534 13198 16577  15   0   6240  2304 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 13214 16577  15   0   6056  2028 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 13623 16577  15   0   6116  2180 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 13624 16577  15   0   6116  2064 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 13637 16577  15   0   6116  2152 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 14148 16577  17   0   5984  2076 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 14758 16577  15   0   6056  2112 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 14759 16577  23   0   6056  2060 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 14760 16577  16   0   6120  2216 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15138 16577  15   0   6244  2332 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15180 16577  15   0   6236  2284 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15191 16577  15   0   6240  2288 ipt_do S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15199 16577  15   0   6116  2212 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15528 16577  15   0   6276  2380 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15563 16577  16   0   6120  2192 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 15899 16577  15   0   6056  2088 65537  S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 16088 16577  15   0   6120  2204 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 16416 16577  15   0   6260  2360 65537  S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5     0 16577     1  18   0   5796  1700 -      Ss   ?          2:53 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 16744 16577  15   0   6056  2124 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 16754 16577  18   0   6240  2312 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 16768 16577  15   0   5984  2064 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 17198 16577  15   0   6272  2308 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 17452 16577  18   0   6256  2332 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 17495 16577  15   0   6360  2416 -      S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 17508 16577  15   0   6512  2476 64     S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 18248 16577  15   0   6120  2212 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 18314 16577  15   0   6504  2464 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 18315 16577  15   0   6224  2296 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
4  1000 18727  4133  21   0  16392  4592 pipe_w S    ?          0:00 /usr/local/php5/bin/php
5 65534 18746 16577  15   0   6236  2304 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
4  1000 18771 14758  18   0  16392  4592 pipe_w S    ?          0:00 /usr/local/php5/bin/php
5 65534 19249 16577  15   0   6056  1960 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19287 16577  15   0   5948  1840 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19418 16577  16   0   6244  2292 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19642 16577  15   0   5984  2024 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19660 16577  15   0   6216  2228 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19664 16577  15   0   5948  1932 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19677 16577  17   0   6216  2152 362893 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19682 16577  15   0   6232  2320 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19683 16577  15   0   5948  1880 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19685 16577  15   0   6220  2124 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19686 16577  20   0   6056  2108 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19690 16577  15   0   6240  2244 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 19817 16577  15   0   6120  2200 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20144 16577  16   0   5984  2036 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20153 16577  15   0   5984  2280 nf_ct_ S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20174 16577  15   0   5984  2016 146102 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20175 16577  15   0   5984  1972 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20474 16577  15   0   6056  2084 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20481 16577  15   0   6244  2300 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
1   509 20556     1  18   0  45920 15860 -      Ss   ?          1:02 /usr/sbin/clamd
1   101 20558     1  16   0   2728   740 pause  Ss   ?          0:00 /usr/bin/freshclam -d
5 65534 20652 16577  15   0   6056  2068 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
1     0 20800     1  15   0   8140  1296 -      Ss   ?          0:00 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
5 65534 20846 16577  16   0   5952  1944 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20870 16577  15   0   5984  2032 308873 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 20872 16577  15   0   6056  2068 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21222 16577  15   0   6056  2092 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21237 16577  15   0   5984  2028 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21238 16577  15   0   6224  2156 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21239 16577  16   0   6056  2084 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21240 16577  15   0   6212  2072 173533 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21382 16577  15   0   6248  2184 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21745 16577  16   0   5984  2000 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21746 16577  15   0   6252  2168 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21783 16577  15   0   6240  2324 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21785 16577  16   0   5984  2028 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21786 16577  15   0   5948  1812 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21806 16577  15   0   6056  2088 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21807 16577  15   0   5984  2056 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21812 16577  18   0   6064  1948 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21814 16577  15   0   5948  1952 341464 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 21815 16577  15   0   5948  1892 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 22378 16577  16   0   5948  1820 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 22688 16577  15   0   6064  1876 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 22747 16577  15   0   6064  1864 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 22806 16577  15   0   5932  1808 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 22992 16577  15   0   6208  2004 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23012 16577  15   0   5924  1796 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23040 16577  17   0   5796  1712 217338 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23051 16577  15   0   5924  1808 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23052 16577  15   0   5924  1796 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23061 16577  15   0   5924  1792 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23062 16577  15   0   5984  1796 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23063 16577  15   0   6056  1876 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23064 16577  15   0   5948  1896 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
4  1000 23185 28627  15   0  17872  6596 -      S    ?          0:00 /usr/local/php5/bin/php
5 65534 23186 16577  15   0   5960  1912 semtim S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
4  1000 23187 17508  15   0  16588  5812 -      S    ?          0:00 /usr/local/php5/bin/php
4  1000 23190 21240  15   0  16588  5808 -      S    ?          0:00 /usr/local/php5/bin/php
5 65534 23195 16577  15   0   5924  1796 ext3_m S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
5 65534 23196 16577  18   0   5928  1760 326110 S    ?          0:00 /usr/local/apache/bin/httpd -D SSL -k start
4  1000 23198 21746  16   0  16588  5812 -      S    ?          0:00 /usr/local/php5/bin/php
4  1000 23211 20870  18   0  16392  4940 flock_ S    ?          0:00 /usr/local/php5/bin/php
4  1000 23215 14759  17   0  17104  6100 -      S    ?          0:00 /usr/local/php5/bin/php
4  1000 23217 18314  15   0  16588  5812 -      S    ?          0:00 /usr/local/php5/bin/php
4  1000 23223 23064  15   0  17104  6052 -      S    ?          0:00 /usr/local/php5/bin/php
4  1000 23224 23196  19   0  17104  5916 -      R    ?          0:00 /usr/local/php5/bin/php
4  1000 23225 15191  16   0  16588  5752 common S    ?          0:00 /usr/local/php5/bin/php
4     0 23226 30227  17   0   2080   704 -      R+   pts/0      0:00 ps axl
1   509 23768 20556  15   0  45920 15860 ip_rcv S    ?          0:00 /usr/sbin/clamd
1     0 28227     6  15   0      0     0 pdflus S    ?          0:00 [pdflush]
1     0 28280     6  16   0      0     0 pdflus S    ?          0:00 [pdflush]
5 65534 28627 16577  16   0   6540  2488 ipt_do S    ?          0:01 /usr/local/apache/bin/httpd -D SSL -k start
4     0 30178  2555  15   0   6396  1520 -      Ss   ?          0:00 sshd: root@pts/0
4     0 30227 30178  15   0   2884  1336 wait   Ss   pts/0      0:00 -bash
5   509 31441  2938  15   0  24808 15276 -      S    ?          0:22 spamd child
5   509 32730  2938  15   0  23864  1376 -      S    ?          0:02 spamd child

jcaron
WRInaute accro
WRInaute accro
 
Messages: 1197
Inscription: Ven Fév 13, 2004 20:33

Message le Jeu Mar 20, 2008 1:11

malopo a écrit:j'ai fait un vmstat 5 5 (je ne sais pas si c'est très indicatif vu que la charge est normale maintenant), mais pour info ça donne (en moyennant les 5 résultats) :

---swap--- -----io-----
si ..... so ---bi -----bo
0 ...... 0 .....30.......180

donc clairement beaucoup de io et peu de swap.


Ce sera plus utile de voir ce que ça donne pendant en effet. Mais c'est déjà loin d'être négligeable (ça dépend de la nature des accès: séquentiels ou aléatoires, mais à mon avis le disque est déjà proche de la saturation là).

malopo a écrit:Maintenant un ps axl me donne :
(snip)


Ben elle a un peu de boulot ta machine, y'a du monde, en particulier un serveur mysql (je croyais qu'il n'y en avait pas), une tripotée de trucs pour le mail, tout un tas d'httpd (qui sont heureusement petits), un php séparé (pas un grand spécialiste de php, mais il ne devrait pas être embarqué en module dans httpd?)... Tu as combien de RAM dans cette machine?

Il manque aussi le top complet, et tant qu'à faire, les paramètres genre MaxClients, MinSpareServers et MaxSpareServers de ton httpd.

Evidemment le ps -axl + top + vmstat pendant le problème c'est idéal, mais le top même maintenant ça permet d'apprendre plein de choses.

Jacques.

Problème de load en direct !

Formation recommandée sur ce thème :

Formation Google Analytics : en 2 jours, apprenez comment exploiter l'essentiel des possibilités de l'outil de mesure d'audience de Google. Formation animée par Julien Coquet, expert certifié officiellement par Google Analytics.

Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité