#40596 [NEW]: Running two PHP scripts causes Apache freeze

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    1. #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...
    2. 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...
    3. 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...
    4. 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 :...
    5. 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...
  3. #2

    Default #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

  4. #3

    Default #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

  5. #4

    Default #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

  6. #5

    Default #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

  7. #6

    Default #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

  8. #7

    Default #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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139