Help : Gros probleme de serveur qui monte en charge

WRInaute discret
Bonjour à tous je suis sous PLESK 9.2.2 et mon serveur mont en charge en trés peu de temps (environ 1h), là il plante et je suis obligé de le rebooter...

Je suis un novice et j'ai un grand besoin de votre aide :

Voila ce que me donne un top pendant les moments de charge :

top - 01:58:57 up 33 min, 1 user, load average: 22.96, 16.65, 9.66
Mem: 989996k total, 972488k used, 17508k free, 13052k buffers
Swap: 522104k total, 484800k used, 37304k free, 259036k cached
Mem: 989996k total, 972380k used, 17616k free, 13048k buffers
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3979 mysql 20 0 153m 34m 2944 S 9.4 3.6 3:40.66 mysqld
4896 root 20 0 2292 1060 736 R 9.4 0.1 0:05.35 top
1 root 20 0 2040 560 532 S 0.0 0.1 0:00.97 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.53 ksoftirqd/0
5 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
10 root RT -5 0 0 0 S 0.0 0.0 0:00.00 kstop/0
140 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
141 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
142 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid

quelqu'un aurait il un piste svp ?
 
WRInaute accro
Ta machine semble avoir besoin de plus de RAM qu'elle n'en a de dispo, et ça swappe à mort (484 Mo de swap utilisés au bout de 33 minutes, alorsq ue tu n'as que 522 Mo de swap et 1 Go de RAM, forcément, ça se finit mal).

Il faudrait un ps axl pour voir le détail des processus qui consomment de la RAM (a priori ça va être httpd et/ou php). Les parties utilies de ta config httpd (MaxClients etc.) ça peut être utile aussi.

Si tu nous disais ce que fait ton serveur et le trafic qu'il y a dessus ça aiderait probablement.

Jacques.
 
WRInaute discret
Merci à toi jcaron,

Voici le résultat d'un ps -alx :
[root@ks353666 ~]# ps alx
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
4 0 1 0 20 0 2040 640 - Ss ? 0:00 init [3]
5 0 2 0 15 -5 0 0 - S< ? 0:00 [kthreadd]
1 0 3 2 -100 - 0 0 - S< ? 0:00 [migration]
1 0 4 2 15 -5 0 0 - S< ? 0:00 [ksoftirqd]
1 0 5 2 15 -5 0 0 - S< ? 0:00 [events/0]
1 0 6 2 15 -5 0 0 - S< ? 0:00 [khelper]
1 0 10 2 -100 - 0 0 - S< ? 0:00 [kstop/0]
1 0 140 2 15 -5 0 0 - S< ? 0:00 [kintegrit]
1 0 141 2 15 -5 0 0 - S< ? 0:00 [kblockd/0]
1 0 142 2 15 -5 0 0 - S< ? 0:00 [kacpid]
1 0 143 2 15 -5 0 0 - S< ? 0:00 [kacpi_not]
1 0 201 2 15 -5 0 0 - S< ? 0:00 [ata/0]
1 0 202 2 15 -5 0 0 - S< ? 0:00 [ata_aux]
1 0 203 2 15 -5 0 0 - S< ? 0:00 [ksuspend_]
1 0 208 2 15 -5 0 0 - S< ? 0:00 [khubd]
1 0 211 2 15 -5 0 0 - S< ? 0:00 [kseriod]
1 0 268 2 20 0 0 0 - S ? 0:03 [pdflush]
1 0 269 2 20 0 0 0 - S ? 0:02 [pdflush]
1 0 270 2 15 -5 0 0 - S< ? 0:00 [kswapd0]
1 0 271 2 15 -5 0 0 - S< ? 0:00 [aio/0]
1 0 275 2 15 -5 0 0 - S< ? 0:00 [nfsiod]
1 0 276 2 15 -5 0 0 - S< ? 0:00 [cifsoploc]
1 0 277 2 15 -5 0 0 - S< ? 0:00 [cifsdnoti]
1 0 279 2 15 -5 0 0 - S< ? 0:00 [xfs_mru_c]
1 0 280 2 15 -5 0 0 - S< ? 0:00 [xfslogd/0]
1 0 281 2 15 -5 0 0 - S< ? 0:00 [xfsdatad/]
1 0 282 2 15 -5 0 0 - S< ? 0:00 [gfs2_scan]
1 0 283 2 15 -5 0 0 - S< ? 0:00 [glock_wor]
1 0 1015 2 15 -5 0 0 - S< ? 0:00 [iscsi_eh]
1 0 1047 2 15 -5 0 0 - S< ? 0:00 [mtdblockd]
1 0 1083 2 15 -5 0 0 - S< ? 0:00 [kpsmoused]
1 0 1099 2 15 -5 0 0 - S< ? 0:00 [kstriped]
1 0 1101 2 15 -5 0 0 - S< ? 0:00 [kdelayd/0]
1 0 1102 2 15 -5 0 0 - S< ? 0:00 [kmpathd/0]
1 0 1103 2 15 -5 0 0 - S< ? 0:00 [kmpath_ha]
1 0 1104 2 15 -5 0 0 - S< ? 0:00 [ksnapd]
1 0 1105 2 15 -5 0 0 - S< ? 0:00 [kondemand]
1 0 1108 2 15 -5 0 0 - S< ? 0:00 [hid_compa]
1 0 1113 2 15 -5 0 0 - S< ? 0:00 [rpciod/0]
1 0 1119 2 15 -5 0 0 - S< ? 0:00 [kjournald]
5 0 1204 1 16 -4 2124 588 - S<s ? 0:00 /sbin/udevd
1 0 2809 2 15 -5 0 0 - S< ? 0:00 [kjournald]
1 0 3484 1 20 0 1696 536 - Ss ? 0:00 syslogd -m
5 0 3487 1 20 0 1648 308 - Ss ? 0:00 klogd -x
5 81 3520 1 20 0 2720 608 - Ss ? 0:00 dbus-daemon
1 0 3565 1 20 0 10648 1008 - Ssl ? 0:00 pcscd
5 10002 3615 1 20 0 5708 1892 - S ? 0:00 /usr/sbin/s
4 112 3616 3615 20 0 25344 5276 - Ss ? 0:00 /usr/bin/sw
4 112 3633 3615 20 0 25344 5276 - Ss ? 0:00 /usr/bin/sw
4 112 3634 3615 20 0 25344 5280 - Ss ? 0:00 /usr/bin/sw
4 112 3637 3615 20 0 25344 5280 - Ss ? 0:00 /usr/bin/sw
5 0 3638 1 20 0 6148 1028 - Ss ? 0:00 /usr/sbin/s
5 0 3654 1 20 0 9908 1900 - Ss ? 0:00 cupsd
5 0 3669 1 20 0 2680 864 - Ss ? 0:00 xinetd -sta
1 112 3683 3616 20 0 25344 1832 - S ? 0:00 /usr/bin/sw
1 112 3684 3634 20 0 25344 1836 - S ? 0:00 /usr/bin/sw
1 112 3685 3637 20 0 25344 1836 - S ? 0:00 /usr/bin/sw
1 112 3686 3637 20 0 25344 1836 - S ? 0:00 /usr/bin/sw
1 112 3687 3633 20 0 25344 1832 - S ? 0:00 /usr/bin/sw
1 112 3688 3633 20 0 25344 1832 - S ? 0:00 /usr/bin/sw
1 112 3689 3634 20 0 25344 1836 - S ? 0:00 /usr/bin/sw
1 112 3690 3616 20 0 25344 1832 - S ? 0:00 /usr/bin/sw
5 0 3740 1 20 0 5828 728 - S ? 0:00 /usr/lib/co
0 0 3742 1 20 0 4676 748 - S ? 0:00 /usr/sbin/c
5 0 3750 1 20 0 5828 736 - S ? 0:00 /usr/lib/co
0 0 3752 1 20 0 4676 804 - S ? 0:00 /usr/sbin/c
5 0 3758 1 20 0 5828 736 - S ? 0:00 /usr/lib/co
0 0 3760 1 20 0 4676 800 - S ? 0:00 /usr/sbin/c
5 0 3767 1 20 0 5828 724 - S ? 0:00 /usr/lib/co
0 0 3769 1 20 0 4676 748 - S ? 0:00 /usr/sbin/c
4 2522 3784 1 20 0 1684 488 - S ? 0:00 qmail-send
4 2022 3785 3784 20 0 1640 468 - S ? 0:00 splogger qm
0 0 3790 3784 20 0 1668 372 - S ? 0:00 qmail-lspaw
4 2521 3791 3784 20 0 1664 388 - S ? 0:00 qmail-rspaw
4 2520 3794 3784 20 0 1632 340 - S ? 0:00 qmail-clean
5 0 3837 1 20 0 1876 360 - Ss ? 0:00 gpm -m /dev
1 25 3889 1 20 0 32896 3948 - Ssl ? 0:11 /usr/sbin/n
4 0 3963 1 20 0 4736 1172 - S ? 0:00 /bin/sh /us
4 27 3999 3963 20 0 147480 48704 - Sl ? 22:13 /usr/libexe
0 26 4101 1 20 0 21452 2632 - S ? 0:00 /usr/bin/po
1 26 4103 4101 20 0 11232 536 - S ? 0:00 postgres: l
1 26 4105 4101 20 0 21452 752 - S ? 0:00 postgres: w
1 26 4106 4101 20 0 12232 544 - S ? 0:00 postgres: s
1 26 4107 4106 20 0 11464 704 - S ? 0:00 postgres: s
5 0 4125 1 20 0 31500 26624 - Ss ? 0:02 /usr/bin/sp
5 110 4126 4125 20 0 36156 31260 - S ? 1:04 spamd child
5 110 4129 4125 20 0 32824 27848 - S ? 0:01 spamd child
5 0 4194 1 20 0 36292 15660 - Ss ? 0:00 /usr/sbin/h
5 48 4203 4194 20 0 26156 6184 - S ? 0:00 /usr/sbin/h
1 111 4284 1 20 0 34444 30956 - Ss ? 0:22 drwebd.real
1 0 4328 1 20 0 5472 1112 - Ss ? 0:00 crond
5 0 4353 1 20 0 2216 416 - Ss ? 0:00 /usr/sbin/a
5 0 4369 1 20 0 42948 29204 - S ? 0:14 /usr/bin/py
5 68 4382 1 20 0 7320 5220 - Ss ? 0:00 hald
0 0 4383 4382 20 0 3108 808 - S ? 0:00 hald-runner
5 0 4430 1 20 0 1956 496 - S ? 0:00 /usr/sbin/s
4 0 4433 1 20 0 1632 420 - Ss+ tty1 0:00 /sbin/minge
4 0 4434 1 20 0 1632 424 - Ss+ tty2 0:00 /sbin/minge
4 0 4436 1 20 0 1632 424 - Ss+ tty3 0:00 /sbin/minge
4 0 4437 1 20 0 1632 424 - Ss+ tty4 0:00 /sbin/minge
4 0 4441 1 20 0 1632 416 - Ss+ tty5 0:00 /sbin/minge
4 0 4442 1 20 0 1632 424 - Ss+ tty6 0:00 /sbin/minge
1 111 12980 4284 20 0 34444 29784 - S ? 0:00 drwebd.real
1 111 12981 4284 20 0 34444 30220 - S ? 0:00 drwebd.real
1 111 12982 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12983 4284 20 0 34444 30208 - S ? 0:00 drwebd.real
1 111 12984 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12985 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12986 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12987 4284 20 0 34444 29636 - S ? 0:00 drwebd.real
1 111 12988 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12989 4284 20 0 34444 29636 - S ? 0:00 drwebd.real
1 111 12990 4284 20 0 34444 29788 - S ? 0:00 drwebd.real
1 111 12991 4284 20 0 34444 29788 - S ? 0:00 drwebd.real
1 111 12992 4284 20 0 34444 30176 - S ? 0:00 drwebd.real
1 111 12993 4284 20 0 34444 30172 - S ? 0:00 drwebd.real
1 111 12994 4284 20 0 34444 29636 - S ? 0:00 drwebd.real
1 111 12995 4284 20 0 34444 30208 - S ? 0:00 drwebd.real
4 0 13464 3638 20 0 10900 3164 - Ss ? 0:00 sshd: root@
4 0 13475 13464 20 0 4740 1348 - Ss pts/0 0:00 -bash
5 48 13510 4194 20 0 54024 31300 - S ? 0:03 /usr/sbin/h
5 48 13555 4194 20 0 53684 31044 - S ? 0:03 /usr/sbin/h
5 48 13653 4194 20 0 52836 30724 - S ? 0:01 /usr/sbin/h
5 48 13656 4194 20 0 52872 30124 - S ? 0:01 /usr/sbin/h
5 48 13657 4194 20 0 38100 15232 - S ? 0:00 /usr/sbin/h
5 48 13664 4194 20 0 53688 30952 - S ? 0:02 /usr/sbin/h
5 48 13665 4194 20 0 50696 28748 - S ? 0:01 /usr/sbin/h
5 48 13741 4194 20 0 38048 15132 - S ? 0:00 /usr/sbin/h
5 48 13742 4194 20 0 38524 15332 - S ? 0:00 /usr/sbin/h
5 48 13791 4194 20 0 37184 13636 - S ? 0:00 /usr/sbin/h
0 0 13793 13475 20 0 4384 756 - R+ pts/0 0:00 ps alx

Ou est ce que ça va être intéressant pour moi ? Désolé je débute en administration de serveur...

Sur le serveur j'ai 3 sites qui font dans les 2500 / 3000 visiteurs / jour
 
WRInaute accro
Il a l'air d'y avoir du monde sur ta machine, mais les noms des processus sont tronqués (tu as fait ça dans une fenêtre pas très large a priori).

Tu peux faire la même chose avec une fenêtre nettement plus large, ou un ps axlwww pour avoir les noms complets?

Jacques.
 
WRInaute passionné
ca sent les connexions mysql mal fermées,les pconnect au lieu des connects, les bots qui viennent pomper des ressources ...
a 3000 VU jours (c'est des vrais visiteurs ???) et 1Mo de RAM / 1 Code2 u equic / si le code php/requete mysql n'est pas optimisé et la config mysql laissée par defaut , 2, 3 petits crawleurs qui viennent visiter et c'est vite la mort ...
 
Discussions similaires
Haut