#41544 [NEW]: Long and memory-intensive processing handling .Net response with datasets

From: Date: Wed, 30 May 2007 17:19:53 +0000
Subject: #41544 [NEW]: Long and memory-intensive processing handling .Net response with datasets
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113211@lists.php.net to get a copy of this message
From: olussier at compurangers dot com Operating system: Windows XP SP2 PHP version: 5.2.2 PHP Bug Type: SOAP related Bug description: Long and memory-intensive processing handling .Net response with datasets Description: ------------ We have been doing performance tests with PHP and .Net interacting through web services. As a test, we have a .Net service returning a dataset with 100000 entries, which makes a SOAP response of about 25 Mbs. We also have a PHP service returning the same data but simply as a string containing a base64-encoded XML (this makes a SOAP response of about 30 Mbs). I have written a test client that simply calculates how much time it takes to call the service and get the response. When calling the PHP service, it takes about 22 seconds to run, which is fine given the amount of data. However when calling the .Net service, it takes over 4 minutes to complete and the process' memory usage gets over 200 megabytes, even though the response is smaller than the PHP service's. I am pretty sure that this has something to do with processing a large XML (maybe converting entities?). Reproduce code: --------------- Simple client: $soap = new SoapClient("http://somewhere.com/test/service.wsdl"); $start = microtime(true); $soap->SomeTest(); $end = microtime(true); echo ($end - $start); -- Edit bug report at http://bugs.php.net/?id=41544&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41544&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41544&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41544&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41544&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41544&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41544&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41544&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41544&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41544&r=support Expected behavior: http://bugs.php.net/fix.php?id=41544&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41544&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41544&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41544&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41544&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41544&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41544&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41544&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41544&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41544&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41544&r=mysqlcfg

« previous php.bugs (#113211) next »