Current time: 06-22-2024, 06:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT]Error 500
Author Message
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #1
[ERLEDIGT]Error 500
Moin zusammen
Ich weiss, das Thema wurde schon zig mal hier behandelt aber ich kriege es dennoch nicht gebacken...

Ich habe die folgenden Threads recherchiert, gelesen und die Lösungsvorschläge auch ausprobiert:
Speziell diesen Thread:
http://www.isp-control.net/forum/thread-...age-1.html

Alle diese Threads:
http://www.google.ch/#hl=de&q=site%3Awww...7f0ab8abc9

Wobei dieser Post von cell meinem Problem am nächsten kommt:
http://www.isp-control.net/forum/thread-...l#pid50394


Mein Problem:
Ich habe eine Ajax Applikation am laufen für ein Dateimanagement, erstens da können recht viele User gleichzeitig online sein, zweitens da werden im Hintergrund eine Menge Requests pro User abgesetzt (so um die 6 bis 8 fürs laden der App und dann 2 pro Datei/Verzeichnis das man anwählt für Berechtigungen und Versionen, sprich wenn ich 10 noch nicht geladene Dateien auf einmal anwähle, werden 20 Requests gleichzeitigt abgesetzt).
Jetzt ist das Ding erstens Saulahm und zweitens kommt ein Error 500 nach 40 Sekunden.
max_execution_time in php ist hoch genug, ebenso das memory limit. Ram hab ich denke ich auch genug, ist ein Host unter VMWare ESX, hab Testweise mal 6GB Ram vergeben => immer noch recht lahm.

Die Wiki Lösung hat mich auch nicht weiter gebracht:
http://www.isp-control.net/ispcp/wiki/ho...idtimeouts
Und naja, standard bei IPCCommTimeout sind wohl 300 und das sind ja nicht wirklich 40 Sekunden, deswegen glaube ich ich drehe da an den falschen Einstellungen. Und ich muss gestehen ich bin verwirrt an der Menge von Lösungen in all den Threads und sie alle bringen mich irgendwie nicht weiter...

meine /var/log/apache2/suexec.log
Code:
[2009-09-04 13:52:40]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2009-09-04 13:59:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2009-09-04 13:59:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2009-09-04 13:59:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2009-09-04 13:59:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2009-09-04 14:39:37]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
meine /var/log/apache2/users/default-error.log
Code:
[Fri Sep 04 13:53:19 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Fri Sep 04 13:53:19 2009] [error] [client 84.73.81.202] Premature end of script headers: jsonInterface.php, referer: http://webshell.ch/view/index.php
[Fri Sep 04 13:53:20 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Fri Sep 04 13:53:20 2009] [error] [client 84.73.81.202] Premature end of script headers: jsonInterface.php, referer: http://webshell.ch/view/index.php
[Fri Sep 04 13:53:22 2009] [notice] mod_fcgid: process 21501 going graceful shutdown, sending SIGTERM
[Fri Sep 04 13:53:27 2009] [notice] mod_fcgid: process 21154 going graceful shutdown, sending SIGTERM
[Fri Sep 04 13:53:33 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Fri Sep 04 13:53:33 2009] [error] [client 84.73.81.202] Premature end of script headers: jsonInterface.php, referer: http://webshell.ch/view/index.php
[Fri Sep 04 13:53:34 2009] [warn] mod_fcgid: process 21501 graceful shutdown timeouted, sending SIGKILL
[Fri Sep 04 13:53:34 2009] [warn] mod_fcgid: process 21154 graceful shutdown timeouted, sending SIGKILL
[Fri Sep 04 13:53:40 2009] [notice] mod_fcgid: process 21502 going graceful shutdown, sending SIGTERM
[Fri Sep 04 13:53:47 2009] [warn] mod_fcgid: process 21502 graceful shutdown timeouted, sending SIGKILL
[Fri Sep 04 13:53:53 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Fri Sep 04 13:53:53 2009] [error] [client 84.73.81.202] Premature end of script headers: jsonInterface.php, referer: http://webshell.ch/view/index.php
[Fri Sep 04 13:53:59 2009] [notice] mod_fcgid: process 21499 going graceful shutdown, sending SIGTERM
[Fri Sep 04 13:54:06 2009] [warn] mod_fcgid: process 21499 graceful shutdown timeouted, sending SIGKILL
und die Logs der Domain:
Code:
[Fri Sep 04 13:53:40 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21501) exit(communication error), get stop signal 9
[Fri Sep 04 13:53:40 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21154) exit(communication error), get stop signal 9
[Fri Sep 04 13:53:53 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21502) exit(communication error), get stop signal 9
[Fri Sep 04 13:54:12 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21499) exit(communication error), get stop signal 9
[Fri Sep 04 13:59:06 2009] [notice] mod_fcgid: call /var/www/virtual/tld.ch/htdocs/jsonInterface.php with wrapper /var/www/fcgi/tld.ch/php5-fcgi-starter
[Fri Sep 04 13:59:06 2009] [notice] mod_fcgid: call /var/www/virtual/tld.ch/htdocs/jsonInterface.php with wrapper /var/www/fcgi/tld.ch/php5-fcgi-starter
[Fri Sep 04 13:59:06 2009] [notice] mod_fcgid: call /var/www/virtual/tld.ch/htdocs/jsonInterface.php with wrapper /var/www/fcgi/tld.ch/php5-fcgi-starter
[Fri Sep 04 13:59:06 2009] [notice] mod_fcgid: call /var/www/virtual/tld.ch/htdocs/jsonInterface.php with wrapper /var/www/fcgi/tld.ch/php5-fcgi-starter
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21317) exit(idle timeout), terminated by calling exit(), return code: 0
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21620) exit(idle timeout), terminated by calling exit(), return code: 0
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21619) exit(idle timeout), terminated by calling exit(), return code: 0
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21623) exit(idle timeout), terminated by calling exit(), return code: 0
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21618) exit(idle timeout), terminated by calling exit(), return code: 0
[Fri Sep 04 14:05:58 2009] [notice] mod_fcgid: process /var/www/virtual/tld.ch/htdocs/index.php(21180) exit(idle timeout), terminated by calling exit(), return code: 0

Meine Systemangaben:
Debian Lenny
ISPCP mit fcgi
ispCP 1.0.0 OMEGA
build: 20090225
Codename: Priamos


Naja, danke schonmal fürs lesen Wink
Gruss aus der Schweiz

Nachtrag, meine fcgid_ispcp.conf schaut so aus:
Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright     2006-2008 by ispCP | http://isp-control.net
# @version         SVN: $Id$
# @link         http://isp-control.net
# @author         ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  # standard 300
  IPCConnectTimeout 600
</IfModule>
(This post was last modified: 09-05-2009 08:09 AM by ZooL.)
09-04-2009 11:25 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Error 500
Poste bitte mal deine aktivierten Apache-Module, nicht das Du einmal fcgid und einmal fastcgi gleichzeit am laufen hast.

Meie fcgid_ispcp.conf sieht so aus:
Code:
#
# ispCP Ï (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2009 by ispCP | http://isp-control.net
# @version              SVN: $Id: fcgid_ispcp.conf 1674 2009-04-20 17:39:53Z malte $
# @link                 http://isp-control.net
# @author               ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 240
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 6
  ZombieScanInterval 3
  ProcessLifeTime 1200
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 250
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 0
  IPCConnectTimeout 20
  IPCCommTimeout 600
  MaxRequestsPerProcess 500
</IfModule>
Kannst ja mal damit versuchen!

Greez BeNe
09-04-2009 11:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #3
RE: Error 500
Danke BeNe für deine Antwort
Hier mal ein Screenshot (denke ist am übersichtlichsten so) aus Webmin mit den aktivierten Apache Modulen im Anhang. Scheint soweit keine Probleme mit fastcgi und fcgi zu geben, denke ich.

Deine Config werde ich gleich mal ausprobieren, danke.

Nachtrag: Ok, deine Config ist zwar gefühlsmässig etwas schneller, die 500er kommen aber immer noch bei 40 Sekunden. Lustig ist ja, das Script scheint im Hintergrund doch fertig zu laufen. Meine Vorschauen, DB Einträge und alles stimmt immer...

Was ja auch seltsam ist, sind diese 40 Sekunden wie sie auch im Error.log enthalten sind
Quote:read data timeout in 40 seconds
Woher kommen die? Diese Einstellung hab ich noch in keinem der Files gefunden...
Weil wenn ich die hochdrehen könnte, wär mein Problem denke ich temporär weg. Der Server ist dann nur noch langsam und das denke ich kriege ich eher in den Griff. Bisschen mehr RAM und bisschen mehr CPU Wink


Attached File(s) Thumbnail(s)
   
(This post was last modified: 09-05-2009 12:14 AM by Foggy.)
09-05-2009 12:01 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Error 500
Es gab ja schon mehrer Ticktes dazu.
Hier das letzte --> http://www.isp-control.net/ispcp/ticket/1889
Mit ein paar Änderungen!

Hilfreich ist vielleicht auch noch das hier -> http://www.dumitrache.net/2009/06/ispcp-...er-errors/

Greez BeNe
09-05-2009 12:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #5
RE: Error 500
Ja das scheint in der Tat zu klappen. Vielen Dank.
Kennst du per Zufall noch einen Link zum Thema Performance Steigerung des Apachen?

Schöne Grüsse
09-05-2009 02:38 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: [ERLEDIGT]Error 500
Quote:Ja das scheint in der Tat zu klappen. Vielen Dank.
Wink

Quote:Kennst du per Zufall noch einen Link zum Thema Performance Steigerung des Apachen?
Was genau meinst Du genau ?
eAccelerator am laufen ?
Apache Worker kannst noch etwas machen. Meist hängt es auch am MySQL da die meisten Seite ja Dynamisch erzeugt werden.

Greez BeNe
09-07-2009 04:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)