Re: mod_php script 'queue'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 12, 2010 at 6:49 PM, Bruno - e-comBR <bruno@xxxxxxxxxxxxxx> wrote:
> Hello,
>
> While performing some tests, I saw that:
>
> -When I run a PHP script with a infinite loop, the apache process(using
> mod_prefork) still busy (php.ini timeouts disabled) 'forever' (the obvious
> fact).
> -When I run again the same script with the same URL, apache seems to
> 'enqueue' the second request, because no other process seems to be running.
> -But if I send a SIGTERM to the apache process, it seems to begin processing
> the second script, and stop the first.
> -If I run the script using a different URL(just by changing the query
> string), it seems to run both process parallely.
>
> It's just the first step. I've done the same tests, but using mod_rewrite.
> It's different: even with different URL, the process get 'queued'.
>
> I just ask: is this the expected behaviour??
>
> It's causing a little throuble for me. When a PHP script generates a bigger
> report(taking about ten minutes or more), the user seems to be impatient.
> They're doing refreshs on the page. So, for each refresh apache is queuing a
> new script, and just begin running this when the queue is empty again.
>
> What do you suggest me?
>
> Thank you,
> Bruno Moreira Guedes
>

I don't use mod_php, so don't know about its behavior. But I recommend
you inform the users that the report can take upto ten minutes to
generate and to be patient. That's the only solution I see.

-- 
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux