[PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Rene Veerman
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?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Jochem Maas
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.

also note I said 'processes' - php is not totally threadsafe (due to
unknowns in various extensions) and generally run under apache using the
[apache] pre-fork worker module.

it's apache that decides how many concurrent httpd processes are allowed to
run, php merely runs as a part of each httpd process in the form of
an apache module.

you could be running php as CGI or FastCGI SAPI, which is different to using the
apache module SAPI, but for the purposes on the above the same story goes.

and if it's not an apache config issue then I guess your looking at some
kind of OS limitation ... no idea about that I'm afraid.

 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Rene Veerman

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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Jochem Maas
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'


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Rene Veerman

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



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Krister Karlström

Hi!

Please note that most browser follows the RFC:s and does not allow more 
than two connections to each domain simultaneously. You can do 
work-arounds to solve this problem, like using subdomains for some 
requests. In Firefox you might also be able to disable this feature...


Regards,
Krister Karlström, Helsinki

Rene Veerman wrote:
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?





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Daevid Vincent
Assuming this is in-fact your issue, I ALWAYS do this registry hack on
my Windows computers:
http://support.microsoft.com/kb/282402


On Tue, 2008-12-09 at 22:10 +0200, Krister Karlström wrote:

 Hi!
 
 Please note that most browser follows the RFC:s and does not allow more 
 than two connections to each domain simultaneously. You can do 
 work-arounds to solve this problem, like using subdomains for some 
 requests. In Firefox you might also be able to disable this feature...
 
 Regards,
 Krister Karlström, Helsinki
 
 Rene Veerman wrote:
  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?
  
  
  
 




Re: [PHP] how do i allow more than 2 threads of php to run?

2008-12-09 Thread Ashley Sheridan
On Tue, 2008-12-09 at 12:19 -0800, Daevid Vincent wrote:
 Assuming this is in-fact your issue, I ALWAYS do this registry hack on
 my Windows computers:
 http://support.microsoft.com/kb/282402
 
 
 On Tue, 2008-12-09 at 22:10 +0200, Krister Karlström wrote:
 
  Hi!
  
  Please note that most browser follows the RFC:s and does not allow more 
  than two connections to each domain simultaneously. You can do 
  work-arounds to solve this problem, like using subdomains for some 
  requests. In Firefox you might also be able to disable this feature...
  
  Regards,
  Krister Karlström, Helsinki
  
  Rene Veerman wrote:
   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?
   
   
   
  
 
 
You still use IE? *gasp*


Ash
www.ashleysheridan.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php