Apache2 läuft nur 1 Minute

Apache, Lighttpd, nginx, Cherokee
toki78
Posts: 9
Joined: 2008-01-23 13:19

Apache2 läuft nur 1 Minute

Post by toki78 » 2009-09-30 14:30

Hallo,
unser wenn ich den apache daemon neu starte, funktioniert
alles ca. 1 Minute lang, dann kann der Browser erst die Bilder
nicht mehr laden, und dann hängt der daemon komplett.
Ein "top" in der Shell ergibt, daß der apache2 Prozess
keine CPU-Zeit verbraucht.
Woran kann das liegen ?

Grüße
Thorsten

toki78
Posts: 9
Joined: 2008-01-23 13:19

Re: Apache2 läuft nur 1 Minute

Post by toki78 » 2009-09-30 15:08

OK, ich habe herausgefunden, daß der Server es nicht verträgt, wenn man 10-20 Tabs im Browser aufmacht
und dann auf "alle Tabs neu laden" klickt.
Die Apache Version ist 2.0.53. Ist das ein Bug in dieser Version ?

Gruß
Thorsten

User avatar
Joe User
Project Manager
Project Manager
Posts: 11137
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache2 läuft nur 1 Minute

Post by Joe User » 2009-09-30 15:20

Ohne nähere Angaben zur Apache-Config und der gegebenenfalls beteiligten Module lässt sich kaum eine potentielle Fehlerquelle ausmachen.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

toki78
Posts: 9
Joined: 2008-01-23 13:19

Re: Apache2 läuft nur 1 Minute

Post by toki78 » 2009-09-30 16:41

Welche Dateien brach Ihr genau ?
Es ist ein Suse 9.3 mit Plesk 9.2.1.
Die folgenden Module werden geladen :

s15213780:/etc/apache2/conf.d # ls
. apache2-manual.conf mod_perl.conf php_cgi.conf zz011_sitebuilder.conf
.. fcgid.conf php4.conf zz010_psa_httpd.conf zzz_horde_vhost.conf

s15213780:/etc/apache2 # ls
. httpd.conf mod_autoindex-defaults.conf mod_status.conf ssl.crt sysconfig.d
.. httpd.pem mod_info.conf mod_userdir.conf ssl.csr uid.conf
conf.d listen.conf mod_log_config.conf mod_usertrack.conf ssl-global.conf vhosts.d
default-server.conf magic mod_mime-defaults.conf server-tuning.conf ssl.key workers.properties
errors.conf mime.types mod_perl-startup.pl ssl.crl ssl.prm
s15213780:/etc/apache2 #


Gruß
Thorsten

toki78
Posts: 9
Joined: 2008-01-23 13:19

Re: Apache2 läuft nur 1 Minute

Post by toki78 » 2009-09-30 16:52

Code: Select all

##
## Server-Pool Size Regulation (MPM specific)
##

# the MPM (multiprocessing module) is not a dynamically loadable module in the
# sense of other modules. It is a compile time decision which one is used. We
# provide different apache2 MPM packages, containing different httpd2 binaries
# compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.

# prefork MPM
<IfModule prefork.c>
   # number of server processes to start
   StartServers         2
   # minimum number of server processes which are kept spare
   MinSpareServers      1
   # maximum number of server processes which are kept spare
   MaxSpareServers      5
   # highest possible MaxClients setting for the lifetime of the Apache process.
   ServerLimit        150
   # maximum number of server processes allowed to start
   MaxClients          10
   # maximum number of requests a server process serves
   MaxRequestsPerChild  0
</IfModule>

# worker MPM
<IfModule worker.c>
   # initial number of server processes to start
   StartServers         2
   # minimum number of worker threads which are kept spare
   MinSpareThreads     25
   # maximum number of worker threads which are kept spare
   MaxSpareThreads     75
   # maximum number of simultaneous client connections
   MaxClients         150
   # constant number of worker threads in each server process
   ThreadsPerChild     25
   # maximum number of requests a server process serves
   MaxRequestsPerChild  0
</IfModule>

# leader MPM
<IfModule leader.c>
   # initial number of server processes to start
   StartServers         2
   # minimum number of worker threads which are kept spare
   MinSpareThreads     25
   # maximum number of worker threads which are kept spare
   MaxSpareThreads     75
   # maximum number of simultaneous client connections
   MaxClients         150
   # constant number of worker threads in each server process
   ThreadsPerChild     25
   # maximum number of requests a server process serves
   MaxRequestsPerChild  0
</IfModule>

# perchild MPM
<IfModule perchild.c>
   # constant number of server processes
   NumServers           5
   # initial number of worker threads in each server process
   StartThreads         5
   # minimum number of worker threads which are kept spare
   MinSpareThreads      5
   # maximum number of worker threads which are kept spare
   MaxSpareThreads     10
   # maximum number of worker threads in each server process
   MaxThreadsPerChild  20
   # maximum number of connections per server process
   MaxRequestsPerChild  0

   AcceptMutex fcntl
</IfModule>

# metux MPM
<IfModule metuxmpm.c>
   # initial number of worker threads in each server process
   StartThreads          5
   # minimum number of worker threads which are kept spare
   MinSpareThreads       5
   # maximum number of worker threads which are kept spare
   MaxSpareThreads      10
   # maximum number of connections per server process
   MaxRequestsPerChild   0

   Multiplexer   "wwwrun"   "www"

</IfModule>


#
# 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

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is
# used  to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
#
#EnableSendfile off


#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully


[jfreund] edit: Konfiguration wegen akuter Augenkrebsgefahr in Code-Tags gepackt - das nächste Mal bitte selbst dran denken!

User avatar
daemotron
Administrator
Administrator
Posts: 2635
Joined: 2004-01-21 17:44

Re: Apache2 läuft nur 1 Minute

Post by daemotron » 2009-09-30 17:10

toki78 wrote:Es ist ein Suse 9.3 mit Plesk 9.2.1.

Wie wäre es mit einem Upgrade auf eine noch unterstützte Version von OpenSUSE?
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time

toki78
Posts: 9
Joined: 2008-01-23 13:19

Re: Apache2 läuft nur 1 Minute

Post by toki78 » 2009-10-01 11:16

Hallo,
eine Neuinstallation ist mir zu riskant, weil vielleicht Daten verloren gehen könnten.
Kann man vielleicht am Servertuning was machen ?

User avatar
Joe User
Project Manager
Project Manager
Posts: 11137
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache2 läuft nur 1 Minute

Post by Joe User » 2009-10-01 11:28

toki78 wrote:eine Neuinstallation ist mir zu riskant, weil vielleicht Daten verloren gehen könnten.

Und das erheblich höhere Risiko, dass in das System eingebrochen wird, blendest Du völlig aus?
Schonmal den Begriff "Backup" gehört?

toki78 wrote:Kann man vielleicht am Servertuning was machen ?

Ja, aber nicht bei dieser Urzeit-Installation, da hier niemand mehr vergleichbar alte Testsysteme hat...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

dotme
Posts: 150
Joined: 2004-12-15 16:48

Re: Apache2 läuft nur 1 Minute

Post by dotme » 2009-10-01 11:33

Welches MPM setzt Du den ein? Bei prefork wird Deiner Konfiguration nach die Anzahl gleichzeitiger Anfragen auf 10 beschränkt. Das sollte Du ggfs. nach Neuinstallation berücksichtigen. :twisted: