Connecting Tech Pros Worldwide Forums | Help | Site Map

only two concurrent php scripts at a time

em
Guest
 
Posts: n/a
#1: Jan 20 '06
hi,
i can't make more than two concurrent requests to a php script - i mean
when i make say 20 simultaneous requests then two first execute but 18 remaining
are waiting for them, then the next two scripts are handled and so on.
why only two? how to change that?
it's not session locking for sure - i use session_write_close,
and actually i stripped down my script so that now has just some
slow-down loop.
it's php 4.2 and apache 2, linux
regards
em

Adam Plocher
Guest
 
Posts: n/a
#2: Jan 20 '06

re: only two concurrent php scripts at a time


Apache limits it to two defaultly. I believe it's the MaxClients
directive in the httpd.conf.

em
Guest
 
Posts: n/a
#3: Jan 21 '06

re: only two concurrent php scripts at a time


> Apache limits it to two defaultly. I believe it's the MaxClients[color=blue]
> directive in the httpd.conf.[/color]

No, MaxClients is usually more than 100. The problem was in Firefox and IE
- they have a limit of 2 concurrent connections to one server... :/
Thanks anyway,
em
d
Guest
 
Posts: n/a
#4: Jan 23 '06

re: only two concurrent php scripts at a time


"em" <example@example.com> wrote in message
news:dqt7o7$i7d$1@inews.gazeta.pl...[color=blue][color=green]
>> Apache limits it to two defaultly. I believe it's the MaxClients
>> directive in the httpd.conf.[/color]
>
> No, MaxClients is usually more than 100. The problem was in Firefox and IE
> - they have a limit of 2 concurrent connections to one server... :/
> Thanks anyway,
> em[/color]

You can get round that by using subdomains. That'll give you as many
connections as you want:

site1.mysite.com
site2.mysite.com

etc.


Closed Thread


Similar PHP bytes