Hallo,
bei mir hängen sich immer mal wieder ein paar PHP Prozesse eines Kunden auf.
Wie kann ich das einstellen, dass ein laufender PHP Prozess sich nach 40 Sekunden automatisch beendet?
Betriebssystem Debian Lenny mit Confixx.
Vielen Dank
Auszug aus der apache2.conf:
bei mir hängen sich immer mal wieder ein paar PHP Prozesse eines Kunden auf.
Wie kann ich das einstellen, dass ein laufender PHP Prozess sich nach 40 Sekunden automatisch beendet?
Betriebssystem Debian Lenny mit Confixx.
Vielen Dank
Auszug aus der apache2.conf:
Code:
Timeout 40
#
# 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 10
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 3
##
## Server-Pool Size Regulation (MPM specific)
##
# 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 mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# 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 mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Last edited by a moderator: