Ask a Question related to PHP Bugs, Design and Development.
-
karldray at interchange dot ubc dot ca #1
#40596 [NEW]: Running two PHP scripts causes Apache freeze
From: karldray at interchange dot ubc dot ca
Operating system: Windows XP SP2
PHP version: 5.2.1
PHP Bug Type: Apache2 related
Bug description: Running two PHP scripts causes Apache freeze
Description:
------------
While two PHP scripts (or two instances of the same script) are running,
Apache (2.2.4) stops responding to any new requests (even for non-php
pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts finshes.
Note: If the third request is for a PHP page containing an error_log() at
the very beginning, then the logfile output is not generated as long as
the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
--
Edit bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40596&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40596&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40596&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40596&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40596&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40596&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40596&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40596&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40596&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40596&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40596&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40596&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40596&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40596&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40596&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40596&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40596&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40596&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40596&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40596&r=mysqlcfg[/url]
karldray at interchange dot ubc dot ca Guest
-
#40594 [NEW]: Blocking socket functions cause Apache freeze
From: karldray at interchange dot ubc dot ca Operating system: Windows XP PHP version: 5.2.1 PHP Bug Type: Sockets related... -
running sql scripts from perl script
I am not sure if this probleem is primarily perl or MySQL, so I'll try here first. With any luck, there is someone else here who uses perl to run... -
Running PL/SQL scripts from PHP
Hi. Is there a way to execute PL/SQL scripts from PHP? I have PL/SQL scripts that utilizes the DBMS_xxx packages. Is it possible to shell out a... -
Running PHP scripts in PHP Nuke
I have a client who wants me to install a script on their web site. Only problem is they use PHP nuke and when I edit a pages content and type in :... -
running scripts
I am sure this has been asked dozens of times so please forgive if this is repetitive. I have an application from which I would like to... -
tony2001@php.net #2
#40596 [Opn->Fbk]: Running two PHP scripts causes Apache freeze
ID: 40596
Updated by: [email]tony2001@php.net[/email]
Reported By: karldray at interchange dot ubc dot ca
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
tony2001@php.net Guest
-
karldray at interchange dot ubc dot ca #3
#40596 [Fbk->Csd]: Running two PHP scripts causes Apache freeze
ID: 40596
User updated by: karldray at interchange dot ubc dot ca
Reported By: karldray at interchange dot ubc dot ca
-Status: Feedback
+Status: Closed
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
Bug closed: I just noticed that while the first two scripts are
running, Apache still responds fine to requests coming from other
clients. There must simply be a limit of two simultaneous requests per
client that Apache is enforcing. Now I just need to figure out how to
change this.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:31:21] [email]tony2001@php.net[/email]
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
karldray at interchange dot ubc dot ca Guest
-
fmk@php.net #4
#40596 [Csd->Fbk]: Running two PHP scripts causes Apache freeze
ID: 40596
Updated by: [email]fmk@php.net[/email]
Reported By: karldray at interchange dot ubc dot ca
-Status: Closed
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
I Think this is an IE problem and has nothing to do with PHP or
Apache.
Try the same thing in Firefox and you will not see this problem. IE
seams to have a limit of two connections to the same server at any
time.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:36:49] karldray at interchange dot ubc dot ca
Bug closed: I just noticed that while the first two scripts are
running, Apache still responds fine to requests coming from other
clients. There must simply be a limit of two simultaneous requests per
client that Apache is enforcing. Now I just need to figure out how to
change this.
------------------------------------------------------------------------
[2007-02-22 22:31:21] [email]tony2001@php.net[/email]
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
fmk@php.net Guest
-
tony2001@php.net #5
#40596 [Fbk->Bgs]: Running two PHP scripts causes Apache freeze
ID: 40596
Updated by: [email]tony2001@php.net[/email]
Reported By: karldray at interchange dot ubc dot ca
-Status: Feedback
+Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
Not PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:37:51] [email]fmk@php.net[/email]
I Think this is an IE problem and has nothing to do with PHP or
Apache.
Try the same thing in Firefox and you will not see this problem. IE
seams to have a limit of two connections to the same server at any
time.
------------------------------------------------------------------------
[2007-02-22 22:36:49] karldray at interchange dot ubc dot ca
Bug closed: I just noticed that while the first two scripts are
running, Apache still responds fine to requests coming from other
clients. There must simply be a limit of two simultaneous requests per
client that Apache is enforcing. Now I just need to figure out how to
change this.
------------------------------------------------------------------------
[2007-02-22 22:31:21] [email]tony2001@php.net[/email]
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
tony2001@php.net Guest
-
karldray at interchange dot ubc dot ca #6
#40596 [Bgs]: Running two PHP scripts causes Apache freeze
ID: 40596
User updated by: karldray at interchange dot ubc dot ca
Reported By: karldray at interchange dot ubc dot ca
Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
Yeah, the limit is implemented in the browser (Firefox does it too).
Here's an article on it (and how to change it):
[url]http://www.oreillynet.com/xml/blog/2006/10/what_i_didnt_know_about_xhr.html[/url]
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:45:35] [email]tony2001@php.net[/email]
Not PHP problem.
------------------------------------------------------------------------
[2007-02-22 22:37:51] [email]fmk@php.net[/email]
I Think this is an IE problem and has nothing to do with PHP or
Apache.
Try the same thing in Firefox and you will not see this problem. IE
seams to have a limit of two connections to the same server at any
time.
------------------------------------------------------------------------
[2007-02-22 22:36:49] karldray at interchange dot ubc dot ca
Bug closed: I just noticed that while the first two scripts are
running, Apache still responds fine to requests coming from other
clients. There must simply be a limit of two simultaneous requests per
client that Apache is enforcing. Now I just need to figure out how to
change this.
------------------------------------------------------------------------
[2007-02-22 22:31:21] [email]tony2001@php.net[/email]
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
karldray at interchange dot ubc dot ca Guest
-
karldray at interchange dot ubc dot ca #7
#40596 [Bgs]: Running two PHP scripts causes Apache freeze
ID: 40596
User updated by: karldray at interchange dot ubc dot ca
Reported By: karldray at interchange dot ubc dot ca
Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
P.S. Thanks for the responses and sorry about the bogus bug. :)
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 23:12:01] karldray at interchange dot ubc dot ca
Yeah, the limit is implemented in the browser (Firefox does it too).
Here's an article on it (and how to change it):
[url]http://www.oreillynet.com/xml/blog/2006/10/what_i_didnt_know_about_xhr.html[/url]
------------------------------------------------------------------------
[2007-02-22 22:45:35] [email]tony2001@php.net[/email]
Not PHP problem.
------------------------------------------------------------------------
[2007-02-22 22:37:51] [email]fmk@php.net[/email]
I Think this is an IE problem and has nothing to do with PHP or
Apache.
Try the same thing in Firefox and you will not see this problem. IE
seams to have a limit of two connections to the same server at any
time.
------------------------------------------------------------------------
[2007-02-22 22:36:49] karldray at interchange dot ubc dot ca
Bug closed: I just noticed that while the first two scripts are
running, Apache still responds fine to requests coming from other
clients. There must simply be a limit of two simultaneous requests per
client that Apache is enforcing. Now I just need to figure out how to
change this.
------------------------------------------------------------------------
[2007-02-22 22:31:21] [email]tony2001@php.net[/email]
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40596[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40596&edit=1[/url]
karldray at interchange dot ubc dot ca Guest



Reply With Quote

