Page 1 of 1

Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 12:44
by distanzcheck
Mein Apache 2 auf Suse 9.0 schmiert zur Zeit des öfteren ab wenn sehr viele HTTP anfragen kommen.

Kann ich das evtl. über die server-tuning.conf beseitigen ?

Apache läuft als Prefork

Hier meine Server-tunng.conf

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         5
	# minimum number of server processes which are kept spare
	MinSpareServers      5
	# maximum number of server processes which are kept spare
	MaxSpareServers     10
	# highest possible MaxClients setting for the lifetime of the Apache process.
	ServerLimit        150
	# maximum number of server processes allowed to start
	MaxClients         150
	# maximum number of requests a server process serves
	MaxRequestsPerChild  0
</IfModule>

Code: Select all

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

Dirk

Achja und Frohe Ostern an alle

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 12:46
by distanzcheck
zusatz:

Per SSH FTP usw. ist der Server weiterhin gut und schnell erreichbar nur HTTP zugriff wird sehr sehr langsam bis zu unmöglich

Dirk

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 14:46
by superuser1
Hi...

schon mal mit einer Umstellung auf worker-mpm versucht?

:roll:

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 14:48
by distanzcheck
Nein, weil ich nicht wirklich genau weiß wie man das machen muss.

Ein kleines Howto dazu wäre natürlich nicht schlecht, vieleicht bekomme ich es damit ja in den griff.

Dirk

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 14:49
by superuser1
Hi...

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

:roll:

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 18:35
by distanzcheck
denke mal das bedeutet soviel wie ich muss den apache2 selbst kompolieren ja ?

Dirk

Re: Apache 2 schmiert des öfteren ab

Posted: 2005-03-27 18:44
by superuser1
Hi...
denke mal das bedeutet soviel wie ich muss den apache2 selbst kompolieren ja ?
Lesen, Verstehen, Handeln?!
We provide different apache2 MPM packages, containing different httpd2 binaries compiled with the available MPMs. See APACHE_MPM in etc/sysconfig/apache2
Hint:
ftp://ftp.suse.com/pub/projects/apache/ ... 6.i586.rpm

:roll: