Re: how do i allow more than 2 threads of php to run?
| From: | Rene Veerman | Date: | Tue, 09 Dec 2008 14:49:12 +0000 |
| Subject: | Re: how do i allow more than 2 threads of php to run? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284362@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Rene Veerman schreef:K, how do i do that? I looked at the apache2 docs but couldnt find the setting to tweakJochem Maas wrote:probably need to fix the apache.conf to allow more concurrent child processes.homeserver (got root, on debian4 + apache2). how can i allow more threads? like 50 or so?Rene Veerman schreef:i'm getting freezes for the 3rd to Nth concurrent request on my
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 150MaxRequestsPerChild 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 25MaxRequestsPerChild 0 </IfModule>