Pb mémoire avec HTTPD lors de l'ouverture du Routeur / FW !

Informations et questions sur Apache en général.

Modérateur : Modérateurs

Avatar de l’utilisateur
prenard
Nouveau membre
Messages : 8
Inscription : mar. 11 mai 2004, 17:11

Pb mémoire avec HTTPD lors de l'ouverture du Routeur / FW !

Messagepar prenard » ven. 17 oct. 2008, 14:03

Bonjour,

Je fais tourner un serveur HTTPD (Apache sur Fedora FC8) avec une application PHP/MySQL qui fonctionne parfaitement en "local" (serveur déconnecté du web).

Lorsque que j'ouvre mon routeur/firewall pour router les flux HTTP en provenance du web vers le serveur, la mémoire de la machine sature quasi instantanément et je dois couper HTTPD pour la libérer.

Je ne vois rien dans les logs (il n'y a même pas d'accès au serveur !) et je suis un peu perdu.

Avez-vous une idée ?

Merci d'avance

Patrick

Avatar de l’utilisateur
dexmon
Gourou
Gourou
Messages : 793
Inscription : sam. 18 juin 2005, 9:55
Localisation : /usr/local/apache
Contact :

Re: Pb mémoire avec HTTPD lors de l'ouverture du Routeur / FW !

Messagepar dexmon » ven. 17 oct. 2008, 18:13

Bonjour,
que dit un top en console lorsque vous activer votre routeur ?
ImageUNIX foreverImage
Avant toute demande de support, vérifiez votre fichier error.log Apache.
----------------------------------------

Avatar de l’utilisateur
prenard
Nouveau membre
Messages : 8
Inscription : mar. 11 mai 2004, 17:11

Re: Pb mémoire avec HTTPD lors de l'ouverture du Routeur / FW !

Messagepar prenard » ven. 17 oct. 2008, 22:17

Voici le résultat du TOP:

Tasks: 165 total, 2 running, 163 sleeping, 0 stopped, 0 zombie
Cpu(s): 31.5%us, 25.8%sy, 0.0%ni, 0.0%id, 39.7%wa, 0.3%hi, 2.6%si, 0.0%st
Mem: 968396k total, 955916k used, 12480k free, 356k buffers
Swap: 1966072k total, 1739764k used, 226308k free, 7552k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3464 apache 20 0 2493m 810m 440 D 29.2 85.7 0:17.85 httpd
247 root 15 -5 0 0 0 S 12.6 0.0 0:05.00 kswapd0
2746 root 20 0 101m 7652 1128 R 9.0 0.8 0:11.65 Xorg
3479 patrick. 20 0 72660 3980 2588 S 5.3 0.4 0:02.03 gnome-system-mo
3032 patrick. 20 0 9584 1108 832 S 2.3 0.1 0:01.12 gconfd-2
2499 lp 20 0 5272 312 304 S 1.7 0.0 0:05.80 parallel
3068 patrick. 20 0 52072 2280 1860 S 0.3 0.2 0:00.51 gnome-settings-
3521 patrick. 20 0 2428 1108 836 R 0.3 0.1 0:00.08 top
1 root 20 0 2012 272 272 S 0.0 0.0 0:02.28 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.03 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
82 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
84 root 15 -5 0 0 0 S 0.0 0.0 0:00.09 kblockd/0
86 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
87 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
189 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue
193 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 ata/0
194 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
196 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd
201 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
204 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
245 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
295 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
542 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
547 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kstriped
550 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksnapd
584 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
585 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
592 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
593 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_3


On voit bien que c'est HTTPD Apache qui consomme toute la mémoire !

Avatar de l’utilisateur
prenard
Nouveau membre
Messages : 8
Inscription : mar. 11 mai 2004, 17:11

Re: Pb mémoire avec HTTPD lors de l'ouverture du Routeur / FW !

Messagepar prenard » sam. 18 oct. 2008, 11:24

Voici des éléments:

errorlog après le stop de HTTPD:


[Sat Oct 18 09:54:00 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Oct 18 09:54:00 2008] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 18 09:54:00 2008] [notice] Digest: done
[Sat Oct 18 09:54:01 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sat Oct 18 09:54:01 2008] [notice] mod_python: using mutex_directory /tmp
[Sat Oct 18 09:54:01 2008] [notice] Apache/2.2.8 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.1 mod_ssl/2.2.8 OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Sat Oct 18 09:59:06 2008] [warn] child process 4819 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4820 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4821 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4822 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4823 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4824 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4825 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:07 2008] [warn] child process 4826 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4819 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4820 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4821 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4822 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4823 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4824 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4825 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:08 2008] [warn] child process 4826 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4819 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4820 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4821 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4822 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4823 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4824 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4825 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:10 2008] [warn] child process 4826 still did not exit, sending a SIGTERM
[Sat Oct 18 09:59:12 2008] [error] child process 4819 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4820 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4821 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4822 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4823 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4824 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4825 still did not exit, sending a SIGKILL
[Sat Oct 18 09:59:12 2008] [error] child process 4826 still did not exit, sending a SIGKILL

accesslog:

[Sat Oct 18 11:10:42 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Oct 18 11:10:43 2008] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 18 11:10:43 2008] [notice] Digest: done
[Sat Oct 18 11:10:43 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sat Oct 18 11:10:43 2008] [notice] mod_python: using mutex_directory /tmp
[Sat Oct 18 11:10:43 2008] [notice] Apache/2.2.8 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.1 mod_ssl/2.2.8 OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Sat Oct 18 11:10:50 2008] [error] [client 127.0.0.1] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-index_item-b-bdd-t-Actrice-i-Monica_Bellucci-p-47-l-es.html
[Sat Oct 18 11:17:27 2008] [error] [client 192.168.0.7] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/toto.html
[Sat Oct 18 11:17:47 2008] [error] [client 192.168.0.7] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-toto.html
[Sat Oct 18 11:20:52 2008] [error] [client 192.168.0.7] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-index_item-b-bdd-t-Actrice-i-Monica_Bellucci-p-47-l-es.html
[Sat Oct 18 11:21:34 2008] [error] [client 74.6.17.151] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-index_item-b-bdd-t-Top_Model-i-Gisele_Bundchen-p-16-l-fr.html
[Sat Oct 18 11:21:34 2008] [error] [client 74.6.17.151] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-index_item-b-bdd-t-Top_Model-i-Cindy_Crawford-p-11-l-en.html
[Sat Oct 18 11:21:34 2008] [error] [client 74.6.17.181] File does not exist: /mnt/data/softs-conf/apache/Virtual_Hosts/admin/v_url-index-b-bdd-t-display-d-20080202-l-fr.html
[Sat Oct 18 11:21:43 2008] [warn] child process 4444 still did not exit, sending a SIGTERM
[Sat Oct 18 11:21:45 2008] [warn] child process 4444 still did not exit, sending a SIGTERM
[Sat Oct 18 11:21:47 2008] [warn] child process 4444 still did not exit, sending a SIGTERM
[Sat Oct 18 11:21:49 2008] [error] child process 4444 still did not exit, sending a SIGKILL
[Sat Oct 18 11:21:50 2008] [notice] caught SIGTERM, shutting down

==> déclenchement de la "boucle" mémoire sur des "page not found"

Une idée ?


Revenir vers « Général »

Qui est en ligne ?

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