From: simon at connexon dot com Operating system: Windows Server 2003 PHP version: 5.2.3 PHP Bug Type: Performance problem Bug description: Soap Call causes CPU to go 100%
Description: ------------ We've been using soap for a while now and noticed that when we send a soap request and it waits for a response, PHP goes in a sort of loop and takes CPU load. Our average waiting time is 4 seconds. A soap call once in a while is ok, because it doesn't take too much CPU overall. But we noticed that the more we grow, the more CPU it takes, to a point where we reach often 100% CPU if we do a loop of soap calls. (All that caused by the waiting time of the soap call!!!). Reproduce code: --------------- x Expected result: ---------------- Would it be possible that PHP goes into an idle mode when it waits for a soap response instead of taking all the CPU ressources? Actual result: -------------- CPU goes crazy when we do too many soap calls in a row (we can do maximum of 4 soap calls at once, else it would overload the server). -- Edit bug report at http://bugs.php.net/?id=41943&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41943&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41943&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41943&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41943&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41943&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41943&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41943&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41943&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41943&r=support Expected behavior: http://bugs.php.net/fix.php?id=41943&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41943&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41943&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41943&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41943&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41943&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41943&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41943&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41943&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41943&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41943&r=mysqlcfg