Apache stürtzt immer ab

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Apache stürtzt immer ab

Postby Weissbierwaldi » 25. February 2006 14:42

Hi

ich habe seit neuestem das Problem, dass mir der Apache abschmiert.
Deshalb hab ich mal in den Logs geschaut.
Hier ist mal ein Auszug:

Code: Select all
[Sat Feb 25 14:23:30 2006] [error] [client 80.58.9.237] Premature end of script headers: 2697352.cgi
[Sat Feb 25 14:23:31 2006] [error] [client 202.88.129.254] (23)Too many open files in system: exec of '/opt/lampp/cgi-bin/3487616.cgi' failed
[Sat Feb 25 14:23:31 2006] [error] [client 202.88.129.254] Premature end of script headers: 3487616.cgi
[Sat Feb 25 14:23:33 2006] [error] [client 65.254.128.34] (23)Too many open files in system: exec of '/opt/lampp/cgi-bin/2326817.cgi' failed
[Sat Feb 25 14:23:33 2006] [error] [client 65.254.128.34] (12)Cannot allocate memory: poll failed waiting for CGI child
[Sat Feb 25 14:23:33 2006] [error] [client 65.254.128.34] Premature end of script headers: 2326817.cgi
[Sat Feb 25 14:23:33 2006] [error] [client 65.254.128.34] (12)Cannot allocate memory: poll failed waiting for CGI child
[Sat Feb 25 14:23:33 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: exec of '/opt/lampp/cgi-bin/1009344.cgi' failed
[Sat Feb 25 14:23:33 2006] [error] [client 202.88.129.254] Premature end of script headers: 1009344.cgi
[Sat Feb 25 14:23:35 2006] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Sat Feb 25 14:23:35 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't create child process: 12: 1009344.cgi
[Sat Feb 25 14:23:35 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/1009344.cgi
[Sat Feb 25 14:23:35 2006] [error] [client 203.172.170.162] (23)Too many open files in system: couldn't set child process attributes: /opt/lampp/cgi-bin/2888014.cgi
[Sat Feb 25 14:23:35 2006] [error] [client 203.172.170.162] (23)Too many open files in system: couldn't spawn child process: /opt/lampp/cgi-bin/2888014.cgi
[Sat Feb 25 14:23:36 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't create child process: 12: 9063091.cgi
[Sat Feb 25 14:23:36 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/9063091.cgi
[Sat Feb 25 14:23:38 2006] [error] [client 202.88.129.254] (23)Too many open files in system: exec of '/opt/lampp/cgi-bin/2726932.cgi' failed
[Sat Feb 25 14:23:38 2006] [error] [client 202.88.129.254] Premature end of script headers: 2726932.cgi
[Sat Feb 25 14:23:38 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't create child process: 12: 9063091.cgi
[Sat Feb 25 14:23:38 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/9063091.cgi
[Sat Feb 25 14:23:38 2006] [error] [client 172.212.208.233] script not found or unable to stat: /opt/lampp/cgi-bin/prxjdg.cgi, referer: http://www.proxylisten.de/cgi-bin/prxjdg.cgi
[Sat Feb 25 14:23:40 2006] [error] [client 65.254.128.34] (12)Cannot allocate memory: poll failed waiting for CGI child
[Sat Feb 25 14:23:40 2006] [error] [client 65.254.128.34] Premature end of script headers: 2326817.cgi
[Sat Feb 25 14:23:40 2006] [error] [client 65.254.128.34] (12)Cannot allocate memory: poll failed waiting for CGI child
[Sat Feb 25 14:23:40 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: exec of '/opt/lampp/cgi-bin/2726932.cgi' failed
[Sat Feb 25 14:23:40 2006] [error] [client 202.88.129.254] Premature end of script headers: 2726932.cgi
[Sat Feb 25 14:23:44 2006] [error] [client 203.160.1.48] (12)Cannot allocate memory: couldn't create child process: 12: 2583615.cgi
[Sat Feb 25 14:23:44 2006] [error] [client 203.160.1.48] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/2583615.cgi
[Sat Feb 25 14:23:44 2006] [error] [client 203.160.1.48] (12)Cannot allocate memory: couldn't create child process: 12: 2583615.cgi
[Sat Feb 25 14:23:44 2006] [error] [client 203.160.1.48] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/2583615.cgi
[Sat Feb 25 14:23:45 2006] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Sat Feb 25 14:23:45 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't create child process: 12: 3564589.cgi
[Sat Feb 25 14:23:45 2006] [error] [client 202.88.129.254] (12)Cannot allocate memory: couldn't spawn child process: /opt/lampp/cgi-bin/3564589.cgi
[Sat Feb 25 14:23:55 2006] [notice] child pid 32265 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [notice] child pid 1454 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [notice] child pid 1514 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [notice] child pid 1526 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [notice] child pid 1790 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [notice] child pid 3604 exit signal Segmentation fault (11)
[Sat Feb 25 14:23:55 2006] [alert] Child 9815 returned a Fatal error... Apache is exiting!
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (22)Invalid argument: couldn't release the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:55 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:56 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:23:59 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:01 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:02 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:03 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:18 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:31 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:35 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:24:55 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:25:30 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:28:29 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:28:54 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Sat Feb 25 14:35:10 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Feb 25 14:35:10 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Feb 25 14:35:11 2006] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Sat Feb 25 14:35:12 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Feb 25 14:35:12 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Feb 25 14:35:12 2006] [notice] Digest: generating secret for digest authentication ...
[Sat Feb 25 14:35:12 2006] [notice] Digest: done
[Sat Feb 25 14:35:13 2006] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/4.4.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations


Die kann es an den CGI-Scripten liegen?
Wenn ja wie kann ich das Problem beheben?

Danke schonmal
Weissbierwaldi
 
Posts: 17
Joined: 14. December 2005 15:15

Postby deepsurfer » 26. February 2006 16:49

Sorry wenn ich gegen Frage:

Apache stürtzt ab ist dein Aussage, heisst es das er norma hochfährt und erst nach einiger Zeit das Fehlverhalten hat oder wird Apche gestartet und wird wieder geschlossen ?

-- -- -- -- -- -- -- -- -- --

Code: Select all
[Sat Feb 25 14:23:30 2006] [error] [client 80.58.9.237] Premature end of script headers: 2697352.cgi

So wie es aussieht sind einige CGI Scripte nicht richtig mit CHMOD gesetzt oder diese wurden via FTP als Binärdatei hochgeschoben und nicht als TEXTdatei.

-- -- -- -- -- -- -- -- -- --

Code: Select all
[Sat Feb 25 14:23:31 2006] [error] [client 202.88.129.254] (23)Too many open files in system: exec of '/opt/lampp/cgi-bin/3487616.cgi' failed

Hier veranlasst das Script irgendwas, ich schätze das er auf eine Vorangegange Aktion wartet und sich immer wieder aufruft bis der EXEC befehl einen Speicherüberlauf verursacht.

das setzt sich dann mit allen anderen Scripten fort.
a) chmod checken
b) wie wurden die Daten installiert (FTP ? entpack befehl aus Konsole ?)
c) Gruppenrechte mittels CHOWN prüfen / ändern. Kann sein das die Scripte mit anderen Rechten versehen sind.
( chown -R nobody.root /absoluter_pfad )

-- -- -- -- -- -- -- -- -- --

Code: Select all
[Sat Feb 25 14:35:12 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?

D u versuchst bestimmt ein eigens SSL Certificat zu nutzen ?????, darin ist ein Konfigfehler vorhanden !
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby Weissbierwaldi » 26. February 2006 17:03

Also ich glaube des mit dem (23)Too many open files in system:
habe ich gelöst habe einfach gesagt dass er mehr Dateien öffnen darf.

Des mit dem SSL hab ich glaub ich auch gelöst Problem war dass ich mir des neue Xampp drauf gemacht habe und in der Apacheconf den Servernamen nicht geändert hatte.

Hmm die Scripte haben nobody:nogroup 777.
Ich habe des Script per FTP drauf geschoben Transfermodus war AUTO.

Die abstürze waren immer nach eigigen Stunden mal mehr mal weniger.

Aber seit dem ich die Sachen wie oben beschrieben habe gemacht habe ist er nicht wieder Abgestürzt.
Mal Schaun ob des so bleibt.
Weissbierwaldi
 
Posts: 17
Joined: 14. December 2005 15:15

Postby deepsurfer » 26. February 2006 17:07

Nagut, dann warten wa mal ab... ;)
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby Weissbierwaldi » 27. February 2006 14:56

Es ist wieder passiert.
Er hat sich diesmal richtig aufgehängt. Musste ihn mit killall httpd -9 killen.

Hier wieder nen Auszug ausser Log:

Code: Select all
[Mon Feb 27 13:57:53 2006] [error] [client 87.11.230.178] File does not exist: /opt/lampp/htdocs/content
[Mon Feb 27 13:57:57 2006] [error] [client 168.73.240.80] script not found or unable to stat: /opt/lampp/cgi-bin/6561948.cgi
[Mon Feb 27 13:58:27 2006] [emerg] (12)Cannot allocate memory: couldn't grab the accept mutex
[Mon Feb 27 13:58:27 2006] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Feb 27 13:58:36 2006] [error] [client 210.114.183.194] script not found or unable to stat: /opt/lampp/cgi-bin/4527429.cgi
[Mon Feb 27 13:58:37 2006] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Feb 27 13:58:47 2006] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Feb 27 13:58:47 2006] [error] [client 210.114.183.194] script not found or unable to stat: /opt/lampp/cgi-bin/4527429.cgi
[Mon Feb 27 13:58:57 2006] [alert] Child 24107 returned a Fatal error... Apache is exiting!
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:58 2006] [emerg] (22)Invalid argument: couldn't release the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:57 2006] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Mon Feb 27 13:58:58 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:58:59 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:58:59 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:00 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:03 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:03 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:04 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:07 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:08 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:11 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:14 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:17 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:23 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:26 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:29 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:32 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:32 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 13:59:35 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Feb 27 14:00:33 2006] [emerg] (22)Invalid argument: couldn't grab the accept mutex


[Mon Feb 27 13:58:57 2006] [alert] Child 24107 returned a Fatal error... Apache is exiting!
Wenn ich jetzt wüsste was da genau passiert währe könnte ich mich drum kümmern.

Vieleicht hilft es wenn ich noch sage warum und wie die Scripte aufgerufen werden.

Also auf meiner Webseite www.proxylisten.de habe ich einen Automatischen Proxychecker, der per Cronjob gestartet.
Weil ich nicht nur mit einem Thread die Proxies überprüfen lassen will habe ich das PHP-Script so programmiert, dass es ein anderes Script anstößt, indem es es per Curl öffnet. Curl hat dabei nen Timeout von 2 Sek. Maximal werden laufen 50 PHP-Scripte und 50 CGI-Scripte.
Die Scripte, die dann von dem jeweiligen Thread aufgerufen werden werden vorher von dem Originalscript kopiert und mit einem zufälligem Namen versehen.


EDIT: Hmm ich glaube ich weiss warum der immer abschmiert.
Da ich einen RootDS bei Server4You habe und nur 256 MB Ram wird anscheinend immer der Ram zu knapp .

Wie gibts bei Linux auch so Programme die den Ram freischaufeln können?
Habe im moment Debian Sarge drauf. Benutzt Suse 9.3, Fedoracore 3 oder Redhat 9 Server Edition weniger Ram als Debian?
Kann man den Apache irgendwie sagen dass er wenn Ram voll ist nichts mer machen soll oderso, damit der nicht mehr abstürzt?
Oder gibts ne bessere Methode CGIs ausführen zulassen?

EDIT2:
Hier mal ein Auszug aus /proc/user_beancounters

Code: Select all
Version: 2.5                                                                   
       uid  resource           held    maxheld    barrier      limit    failcnt
    187074: kmemsize        9414115   17783362   17777274   19555001       6481
            lockedpages           0          0        868        868          0
            privvmpages       57171     211018     250782     275860          0
            shmpages           1452       4028      25078      25078          0
            dummy                 0          0          0          0          0
            numproc              72        174        434        434          0
            physpages         25548     165179          0 2147483647          0
            vmguarpages           0          0      41797 2147483647          0
            oomguarpages      26909     165413      41797 2147483647          0
            numtcpsock           54        413        434        434          0
            numflock              4         18        694        763          0
            numpty                1          3         43         43          0
            numsiginfo            0         42       1024       1024          0
            tcpsndbuf        115968    4174248    4148094    5925758       1239
            tcprcvbuf         11196    4144248    4148094    5925758       3268
            othersockbuf      19516     202212    2074047    3851711          0
            dgramrcvbuf           0      55588    2074047    2074047          0
            numothersock         45        126        434        434          0
            dcachesize       455756     631400    3883246    3999744          0
            numfile            1172       2846       6944       6944          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         32        128        128          0


Gibts für die einzelnen Zeilen irgendwo eine beschreibung auf Deutsch?

EDIT3: Hab gerade bei nem Software update gesehen dass nen Antivir lief habe den gerade gestoppt. Kann der Apache dadruch schneller arbeiten? Eigentlich schon oder?

Danke schonmal
Weissbierwaldi
 
Posts: 17
Joined: 14. December 2005 15:15

Postby Weissbierwaldi » 28. February 2006 15:15

Also langsam finde ich es komisch.
Nach dem letzten absturz hatte ich die ErroLog gelöscht.

Gerade ist er mir wieder abgestürtzt. Aber diesmal steht so gut wie nichts drin.
Hier der Auszug:
Code: Select all
[Tue Feb 28 15:12:53 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 28 15:12:53 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Feb 28 15:12:54 2006] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Tue Feb 28 15:12:55 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 28 15:12:55 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Feb 28 15:12:55 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 28 15:12:55 2006] [notice] Digest: done
[Tue Feb 28 15:12:56 2006] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/4.4.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Tue Feb 28 15:13:00 2006] [error] [client 62.140.211.130] File does not exist: /opt/lampp/htdocs/webproxy/style_images, referer: http://www.proxylisten.de/webproxy/index.php?q=http%3A%2F%2Fwww.tcclan.org%2Fforums%2Findex.php%3Fshowtopic%3D111%26amp%3Bst%3D40
[Tue Feb 28 15:13:00 2006] [error] [client 62.140.211.130] File does not exist: /opt/lampp/htdocs/webproxy/style_images, referer: http://www.proxylisten.de/webproxy/index.php?q=http%3A%2F%2Fwww.tcclan.org%2Fforums%2Findex.php%3Fshowtopic%3D111%26amp%3Bst%3D40
[Tue Feb 28 15:13:00 2006] [error] [client 62.140.211.130] File does not exist: /opt/lampp/htdocs/webproxy/style_images, referer: http://www.proxylisten.de/webproxy/index.php?q=http%3A%2F%2Fwww.tcclan.org%2Fforums%2Findex.php%3Fshowtopic%3D111%26amp%3Bst%3D40
[Tue Feb 28 15:13:01 2006] [error] [client 62.140.211.130] File does not exist: /opt/lampp/htdocs/img, referer: http://www.proxylisten.de/webproxy/index.php?q=http%3A%2F%2Fforum2.egosoft.com%2Fviewtopic.php%3Ft%3D119922%26amp%3Bhighlight%3D
[Tue Feb 28 15:13:04 2006] [error] [client 62.140.211.130] File does not exist: /opt/lampp/htdocs/webproxy/style_images, referer: http://www.proxylisten.de/webproxy/index.php?q=http%3A%2F%2Fwww.tcclan.org%2Fforums%2Findex.php%3Fshowtopic%3D111%26amp%3Bst%3D40
[Tue Feb 28 15:13:11 2006] [error] [client 86.110.136.224] File does not exist: /opt/lampp/htdocs/content
Weissbierwaldi
 
Posts: 17
Joined: 14. December 2005 15:15

Postby Weissbierwaldi » 06. March 2006 19:21

Der Apache stürtzt immer wieder ab. Ich hab mal in ne Standard-Config von einem Apache geschaut und da hab ich folgendes gefunden was es in der Konfig vom Xampp-Apache nicht gibt:

Code: Select all
# Timeout: The number of seconds before receives and sends time out.

Timeout 300

# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.

KeepAlive On

# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.

KeepAliveTimeout 15


# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers         1
MinSpareServers      1
MaxSpareServers      2
MaxClients           40
MaxRequestsPerChild  500
</IfModule>

# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to start
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of requests a server process serves
<IfModule worker.c>
StartServers         1
MaxClients           15
MinSpareThreads      10
MaxSpareThreads      35
ThreadsPerChild      15
MaxRequestsPerChild  500
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial  number of worker threads in each server process
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      10
MaxSpareThreads      35
MaxThreadsPerChild  20
MaxRequestsPerChild  1000
AcceptMutex fcntl
</IfModule>


Warum gibts die nicht im Xampp-Apache?
Weissbierwaldi
 
Posts: 17
Joined: 14. December 2005 15:15


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests