Jochem Maas wrote:
Rene Veerman schreef:
Jochem Maas wrote:
Rene Veerman schreef:
i'm getting freezes for the 3rd to Nth concurrent request on my
homeserver (got root, on debian4 + apache2).
how can i allow more threads? like 50 or so?
probably need to fix the apache.conf to allow more concurrent child
processes.
K, how do i do that?
I looked at the apache2 docs but couldnt find the setting to tweak
look for these (these just happen to be the settings for my local dev install):
StartServers 1
MinSpareServers 1
MaxSpareServers 2
MaxClients 16
MaxRequestsPerChild 1000
i'd imagine MaxClients is the one you will need to 'up'
also STW for 'apache prefork MPM'
sry, but that didn't fix things. it was already at 150 (i tried 250),
and my webserver freezes on 1 to 3 open connections, can't tell for
sure. but it's a real low number..
# 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>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php