Aller au contenu

Aidez moi, mon serveur dedié est devenu trés lent


altaweb

Sujets conseillés

Bonjour à tous !

J'ai besoin de vos lumières.

Mon superplan ovh est devenu vraiment trés lent depuis hier soir sans raison apparamente :

Je suis novice en gestion de serveur dedié, alors j'aimerais bcp vos avis ?

Voici ce que je vois quand je fais un top en ssh :

11:38am  up 10:27,  1 user,  load average: 0,37, 0,30, 0,26
113 processes: 108 sleeping, 1 running, 1 zombie, 3 stopped
CPU states:  6,9% user,  5,1% system,  0,0% nice, 87,8% idle
Mem:   505496K av,  500856K used,    4640K free,       0K shrd,   86868K buff
Swap: 2097136K av,       0K used, 2097136K free                  246652K cached

 PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
25561 root      14   0  1072 1068   820 R     3,8  0,2   0:00 top
8261 nobody    11   0  5108 5108  4156 S     2,8  1,0   0:00 httpd
11258 root      14   0  3856 3856  3728 S     0,9  0,7   0:03 httpd
32501 nobody    14   0  3920 3920  3780 S     0,9  0,7   0:00 httpd
   1 root       9   0   524  524   456 S     0,0  0,1   0:06 init
   2 root       9   0     0    0     0 SW    0,0  0,0   0:00 keventd
   3 root      19  19     0    0     0 SWN   0,0  0,0   0:01 ksoftirqd_CPU0
   4 root       9   0     0    0     0 SW    0,0  0,0   0:00 kswapd
   5 root       9   0     0    0     0 SW    0,0  0,0   0:00 bdflush
   6 root       9   0     0    0     0 SW    0,0  0,0   0:02 kupdated
   7 root      -1 -20     0    0     0 SW<   0,0  0,0   0:00 mdrecoveryd
   8 root       9   0     0    0     0 SW    0,0  0,0   1:11 kjournald
22627 root       9   0     0    0     0 SW    0,0  0,0   1:36 kjournald
22745 root       9   0  1348 1348  1192 S     0,0  0,2   0:00 sshd
9018 root       9   0   592  592   488 S     0,0  0,1   0:00 syslogd
5856 root       9   0   508  508   440 S     0,0  0,1   0:00 klogd
12215 named      9   0  4572 4572  2028 S     0,0  0,9   0:00 named
16894 named      9   0  4572 4572  2028 S     0,0  0,9   0:00 named
25229 named      9   0  4572 4572  2028 S     0,0  0,9   1:06 named
2453 named      9   0  4572 4572  2028 S     0,0  0,9   0:01 named
4640 named      9   0  4572 4572  2028 S     0,0  0,9   0:13 named
15569 root       9   0   972  972   776 S     0,0  0,1   0:00 xinetd
21169 qmails     9   0   400  400   316 S     0,0  0,0   0:00 qmail-send
20540 root       9   0   496  496   424 S     0,0  0,0   0:00 tcpserver
13908 qmaill     9   0   504  504   432 S     0,0  0,0   0:00 tcpserver
11903 qmaill     9   0     0    0     0 Z     0,0  0,0   0:00 tai64n <defunct>
17969 root       9   0   332  332   272 S     0,0  0,0   0:00 qmail-lspawn
22130 qmailr     8   0   344  344   280 S     0,0  0,0   0:00 qmail-rspawn
5819 qmailq     9   0   344  344   280 S     0,0  0,0   0:00 qmail-clean
11241 root       9   0   652  652   552 S     0,0  0,1   0:00 couriertcpd
17681 root       9   0   332  332   276 S     0,0  0,0   0:00 courierlogger
30803 root       8   0   680  680   572 S     0,0  0,1   0:00 crond
29116 root       9   0  1036 1036   844 S     0,0  0,2   0:00 safe_mysqld
17659 daemon     9   0   572  572   492 S     0,0  0,1   0:00 atd
2547 mysql      9   0  5128 5128  1228 S     0,0  1,0   0:04 mysqld
1113 root       8   0  1428 1428  1344 S     0,0  0,2   0:01 watchdog
8099 root       9   0   304  304   248 S     0,0  0,0   0:00 clockspeed
[4]+  Stopped                 top  1228 S     0,0  1,0   0:05 mysqld
[root_AT_ns31192 root]# 0  5128 5128  1228 S     0,0  1,0   0:03 mysqld

Et voici ce que ça m'affiche quand je fais un ps aux :

[root_AT_ns31192 root]# ps aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  1388  524 ?        S    01:10   0:06 init [3]
root         2  0.0  0.0     0    0 ?        SW   01:10   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  01:10   0:01 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   01:10   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   01:10   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   01:10   0:02 [kupdated]
root         7  0.0  0.0     0    0 ?        SW<  01:11   0:00 [mdrecoveryd]
root         8  0.1  0.0     0    0 ?        SW   01:11   1:11 [kjournald]
root     22627  0.2  0.0     0    0 ?        SW   01:11   1:36 [kjournald]
root     22745  0.0  0.2  2976 1348 ?        S    01:11   0:00 /usr/sbin/sshd
root      9018  0.0  0.1  1448  592 ?        S    01:11   0:00 syslogd -m 0
root      5856  0.0  0.1  1376  508 ?        S    01:11   0:00 klogd -2
named    12215  0.0  0.9 12476 4572 ?        S    01:11   0:00 named -u named
named    16894  0.0  0.9 12476 4572 ?        S    01:11   0:00 named -u named
named    25229  0.1  0.9 12476 4572 ?        S    01:11   1:06 named -u named
named     2453  0.0  0.9 12476 4572 ?        S    01:11   0:01 named -u named
named     4640  0.0  0.9 12476 4572 ?        S    01:11   0:13 named -u named
root     15569  0.0  0.1  2184  972 ?        S    01:11   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
qmails   21169  0.0  0.0  1412  400 ?        S    01:11   0:00 qmail-send
root     20540  0.0  0.0  1428  496 ?        S    01:11   0:00 tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup ns31192.ovh.net /home/vpopmail/bin/vc
qmaill   13908  0.0  0.0  1428  504 ?        S    01:11   0:00 tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u503 -g503 0 smtp /var/qmail/bin/qmail-smtpd
qmaill   11903  0.0  0.0     0    0 ?        Z    01:11   0:00 [tai64n <defunct>]
root     17969  0.0  0.0  1368  332 ?        S    01:11   0:00 qmail-lspawn ./Maildir/
qmailr   22130  0.0  0.0  1368  344 ?        S    01:11   0:00 qmail-rspawn
qmailq    5819  0.0  0.0  1360  344 ?        S    01:11   0:00 qmail-clean
root     11258  0.0  0.7  8556 3856 ?        S    01:11   0:03 /usr/local/apache/bin/httpd
root     11241  0.0  0.1  1608  652 ?        S    01:11   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlogger=/usr/lib/courier-imap/sbin/
root     17681  0.0  0.0  1352  332 ?        S    01:11   0:00 /usr/lib/courier-imap/sbin/courierlogger imapd
root     30803  0.0  0.1  1572  680 ?        S    01:11   0:00 crond
root     29116  0.0  0.2  2260 1036 ?        S    01:11   0:00 /bin/sh /usr/bin/safe_mysqld --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/ns31192.ovh.ne
daemon   17659  0.0  0.1  1420  572 ?        S    01:11   0:00 /usr/sbin/atd
mysql     2547  0.0  1.0 13164 5128 ?        S    01:11   0:04 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/n
root      1113  0.0  0.2  1428 1428 ?        SL   01:11   0:01 watchdog
root      8099  0.0  0.0  1352  304 ?        S    01:11   0:00 /usr/local/clockspeed/bin/clockspeed
mysql    14971  0.0  1.0 13164 5128 ?        S    01:11   0:05 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/n
mysql     6857  0.0  1.0 13164 5128 ?        S    01:11   0:03 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/n
root      4227  0.0  0.9  6612 4944 ?        S    01:11   0:01 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
root     20163  0.0  0.0  1360  424 tty1     S    01:11   0:00 /sbin/mingetty tty1
root     17288  0.0  0.0  1360  424 tty2     S    01:11   0:00 /sbin/mingetty tty2
root     20384  0.0  0.0  1360  424 tty3     S    01:11   0:00 /sbin/mingetty tty3
root     14353  0.0  0.0  1360  424 tty4     S    01:11   0:00 /sbin/mingetty tty4
root     19345  0.0  0.0  1360  424 tty5     S    01:11   0:00 /sbin/mingetty tty5
root     27957  0.0  0.0  1360  424 tty6     S    01:11   0:00 /sbin/mingetty tty6
root     15731  0.0  0.2  2208 1284 ?        S<   01:11   0:01 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/general.cf /usr/local/etc/ncftpd/domain.
root      3419  0.0  0.0  1372  480 ttyS0    S    01:11   0:00 /sbin/agetty ttyS0 9600
root     25822  0.0  0.1  2008  820 ?        SN   01:11   0:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/general.cf /usr/local/etc/ncftpd/domain.
root     23246  0.0  0.2  2208 1304 ?        S<   01:11   0:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/general.cf /usr/local/etc/ncftpd/domain.
root     15264  0.0  0.4  6272 2028 ?        S    11:13   0:00 sshd: root_AT_pts/0
nobody   19600  0.2  1.1  9648 5796 ?        S    11:13   0:03 /usr/local/apache/bin/httpd
root      6874  0.0  0.2  2476 1316 pts/0    S    11:14   0:00 -bash
nobody   16728  0.1  0.9  9084 5020 ?        S    11:16   0:01 /usr/local/apache/bin/httpd
nobody   11043  0.1  1.0  9192 5344 ?        S    11:19   0:01 /usr/local/apache/bin/httpd
nobody    1631  0.1  1.1  9660 5780 ?        S    11:19   0:01 /usr/local/apache/bin/httpd
nobody    4055  0.2  1.1  9572 5892 ?        S    11:20   0:03 /usr/local/apache/bin/httpd
nobody   12557  0.1  1.1  9588 5736 ?        S    11:21   0:01 /usr/local/apache/bin/httpd
nobody   23579  0.1  1.1  9548 5696 ?        S    11:21   0:01 /usr/local/apache/bin/httpd
nobody    1047  0.1  1.1  9648 5736 ?        S    11:21   0:01 /usr/local/apache/bin/httpd
nobody   14528  0.1  1.1  9548 5696 ?        S    11:21   0:01 /usr/local/apache/bin/httpd
nobody    6499  0.1  1.0  9072 5072 ?        S    11:21   0:01 /usr/local/apache/bin/httpd
nobody   21777  0.0  1.1  9552 5700 ?        S    11:23   0:00 /usr/local/apache/bin/httpd
nobody   28431  0.1  1.1  9580 5728 ?        S    11:24   0:01 /usr/local/apache/bin/httpd
nobody   17944  0.1  1.1  9612 5740 ?        S    11:24   0:01 /usr/local/apache/bin/httpd
nobody   19046  0.1  1.0  9208 5144 ?        S    11:26   0:01 /usr/local/apache/bin/httpd
nobody    8853  0.1  0.9  9032 4968 ?        S    11:26   0:01 /usr/local/apache/bin/httpd
nobody   24180  0.2  1.0  9240 5176 ?        S    11:29   0:01 /usr/local/apache/bin/httpd
nobody   15135  0.1  0.9  9104 5040 ?        S    11:29   0:01 /usr/local/apache/bin/httpd
nobody   23968  0.2  1.1  9656 5800 ?        S    11:29   0:01 /usr/local/apache/bin/httpd
nobody   20545  0.1  1.1  9552 5700 ?        S    11:29   0:00 /usr/local/apache/bin/httpd
nobody   26640  0.1  1.1  9548 5696 ?        S    11:29   0:01 /usr/local/apache/bin/httpd
nobody   22164  0.1  1.0  9228 5164 ?        S    11:30   0:01 /usr/local/apache/bin/httpd
nobody   29949  0.1  1.1  9540 5688 ?        S    11:31   0:00 /usr/local/apache/bin/httpd
nobody   15623  0.4  1.1  9564 5684 ?        S    11:32   0:01 /usr/local/apache/bin/httpd
root     29014  0.0  0.2  2112 1060 pts/0    T    11:33   0:00 top
nobody    5062  0.1  0.9  9084 5024 ?        S    11:33   0:00 /usr/local/apache/bin/httpd
nobody   23403  0.0  1.0  9128 5056 ?        S    11:33   0:00 /usr/local/apache/bin/httpd
root     22580  0.2  0.2  2124 1072 pts/0    T    11:33   0:00 top
nobody    6088  0.1  1.0  9180 5096 ?        S    11:34   0:00 /usr/local/apache/bin/httpd
nobody    9719  0.2  1.0  9164 5080 ?        S    11:34   0:00 /usr/local/apache/bin/httpd
nobody     238  0.0  0.9  9152 5000 ?        S    11:36   0:00 /usr/local/apache/bin/httpd
root      6071  0.0  0.2  2124 1072 pts/0    T    11:36   0:00 top
nobody   23822  0.3  1.1  9620 5724 ?        S    11:37   0:00 /usr/local/apache/bin/httpd
nobody   32557  0.1  1.0  9168 5068 ?        S    11:38   0:00 /usr/local/apache/bin/httpd
nobody    8340  0.0  0.9  9168 5036 ?        S    11:38   0:00 /usr/local/apache/bin/httpd
nobody   16672  0.1  1.0  9188 5092 ?        S    11:38   0:00 /usr/local/apache/bin/httpd
nobody   26540  1.2  1.0  9272 5072 ?        S    11:38   0:01 /usr/local/apache/bin/httpd
root     25561  0.1  0.2  2136 1080 pts/0    T    11:38   0:00 top
root     22294  0.0  0.1  1584  716 ?        S    11:40   0:00 CROND
root     24151  0.0  0.1  1936  860 ?        S    11:40   0:00 /bin/bash -c /usr/local/rtm/bin/rtm 58 >/dev/null 2>/dev/null
root      7739 13.0  0.4  3204 2060 ?        S    11:40   0:00 /usr/bin/perl -w /usr/local/rtm/bin/rtm 58
root      5863  0.0  0.1  2652  764 pts/0    R    11:40   0:00 ps aux
[root_AT_ns31192 root]#

Qu'est ce que vous en pensez ?

Que dois je faire ?

Merci bcp de votrre aide...

Lien vers le commentaire
Partager sur d’autres sites

Bonjour altaweb,

Es-tu sûr que ton serveur est lent ? Parce que rien ne permet de dire cela sur base de ce que tu affiches.

Les cinq premières lignes de ta commande "top" démontrent quantité de points de "bonne santé".

11:38am  up 10:27,  1 user,  load average: 0,37, 0,30, 0,26
113 processes: 108 sleeping, 1 running, 1 zombie, 3 stopped
CPU states:  6,9% user,  5,1% system,  0,0% nice, 87,8% idle
Mem:   505496K av,  500856K used,    4640K free,       0K shrd,   86868K buff
Swap: 2097136K av,       0K used, 2097136K free                  246652K cached

La première ligne donne le load average, c'est à dire la taille de la "run queue" ou encore le nombre de processus attendant d'être servis.

Comme tu es sur un monoprocesseur, il faut idéalement que cela reste inférieur à 1. Tu as 0,37 pour la denière minute, et 0,30 et 0,26 pour les 5 et 15 dernières minutes, donc c'est tout bon.

De plus, tu as sur la troisième ligne l'indication que ton processeur n'est utilisé qu'à 12,2% ... donc là aussi c'est tout bon.

La cinquième ligne démontre que ton serveur a 0% de swap, on aimerait tous avoir cela. ;)

Donc ce n'est pas le serveur. Mais tu peux regarder dans les logs d'erreur Apache pour voir si tu n'as pas une erreur 404 trop fréquente, due par exemple à une image ou une page qui manque ou est mal référencée. Vas voir dans /var/log/httpd/error_log ...

En dehors de cela, une commande "dmesg" permet souvent de voir si tu as des erreurs matérielles, ou une interface réseau qui ne s'est pas configurée correctement. Cela m'est arrivé d'avoir une interface qui passe de 100 à 10 mbits, et cela se sent tout de suite.

Regardes aussi la fin de /var/log/messages, c'est aussi une source fiable pour d'eventuels problèmes ;)

Dan

Lien vers le commentaire
Partager sur d’autres sites

Posté (modifié)

Merci beaucoup dan pour ta reponse.

J'ai ecrit un mail à ovh et tout est redevenu normale, c'est bizarre...

Je prends note de tes recommandations au niveau des logs d'erreur apache et de la commande "dmesg" que je ne connaissais pas.

Pourrais tu me conseiller un site internet où je pourrais glanner quelques informations supplementaire pour la gestion de base d'un serveur dedié linux (où trouver les logs, les regles de bases pour le securisé un minimum, gestion des processus, que faire en cas de hacking...)

Merci encore.

Modifié par altaweb
Lien vers le commentaire
Partager sur d’autres sites

Pourrais tu me conseiller  un site internet où je pourrais glanner quelques  informations supplementaire pour la gestion de base d'un serveur dedié linux (où trouver les logs, les regles de bases pour  le securisé un minimum, gestion des processus, que faire en cas de hacking...)

Personnellement le seul conseil que je puisses te donner c'est de souscrire à l'infogérance de ton serveur par Dan. Voici le témoignage de Xavfun qui te donnera un aperçu de ce qui t'attend ;)
Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...