From: brian dot foddy at nwa dot com Operating system: Solaris 2.8 PHP version: 5.0.2 PHP Bug Type: Performance problem Bug description: Unable to have concurrent execution of same page
Description: ------------ Frankly I can't believe this is a bug, but I can't find any config to change this behavior... Using 5.0.2 on Solaris 2.8 and Apache 1.3.22, we are unable to have concurrent execuation of the same script at the same time. Any attempt to run the script below from 2 browsers, the first one will start normally, displaying "starting", then during the sleep, try a second request and it will not begin any execution until the first request completes, then it begins its normal execution. If this script is duplicated to a different file name, ie: concurrent1.php and concurrent2.php, then both can execute at the same time as you would expect. This server was upgraded from version 4.3x some months back and I'm sure it didn't have this behavior. In general our server is a low-volume intranet server so this problems only shows up on rare occasions when a specific web app is needed. Apache config: MinSpareServers 2 MaxSpareServers 12 StartServers 8 MaxClients 20 The web server is not reaching these limits for my tests. Reproduce code: --------------- <?php print ("starting"); flush (); touch ("foo.dat"); sleep (60); ?> Done. Execute from 2 browsers at the same time. Expected result: ---------------- Both browsers should show "starting" then wait the 60 seconds. Actual result: -------------- The first request starts normally, the second page waits for the first to complete before the second begins. -- Edit bug report at http://bugs.php.net/?id=30589&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30589&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30589&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30589&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30589&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30589&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30589&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30589&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30589&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30589&r=support Expected behavior: http://bugs.php.net/fix.php?id=30589&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30589&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30589&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30589&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30589&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30589&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30589&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30589&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30589&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30589&r=mysqlcfg