Bug #41943 [Com]: Soap Call causes CPU to go 100%
| From: | sblackstone at gmail dot com | Date: | Mon, 07 Jul 2014 16:38:12 +0000 |
| Subject: | Bug #41943 [Com]: Soap Call causes CPU to go 100% | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186505@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=41943&edit=1
ID: 41943
Comment by: sblackstone at gmail dot com
Reported by: simon at connexon dot com
Summary: Soap Call causes CPU to go 100%
Status: No Feedback
Type: Bug
Package: SOAP related
Operating System: Windows Server 2003
PHP Version: 5.2.3
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
I don't have an environment that I can provide a procedure to duplicate this issue, I'm
seeing this same problem currently under php 5.3.28 connecting to an IIS server from an OSX dev box.
The SOAP server is a bit of a mess and can take up to 130 seconds to respond to queries - in the
mean time the process pegs the CPU at 100% utilization.
I tried to duplicate this setup with a dummy soap service on an ubuntu box, but I didn't see
the same results..
Previous Comments:
------------------------------------------------------------------------
[2007-08-09 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-08-01 09:40:53] dmitry@php.net
On Windows I just called CLI PHP that accessed SOAP server on Linux/Apache.
------------------------------------------------------------------------
[2007-07-30 21:39:53] simon at connexon dot com
Hi dmitry, were you using apache or IIS under windows?
We are using IIS. Perhaps it is the source of the problem...
I will be doing more testing on this later this week. Please let me know.
Thank you.
------------------------------------------------------------------------
[2007-07-25 06:25:38] dmitry@php.net
I am not able to reproduce this.
I created a simple client that accesses server over HTTPS:
<?php
$client = new SoapClient(NULL,array(
"location"=> "https://tpl/~dmitry/soap/examples/server4.php",
"uri" => "test://"));
echo $client->getQuote("ibm");
?>
and server that sleeps for 15 seconds:
<?php
$quotes = array(
"ibm" => 98.42
);
function getQuote($symbol) {
global $quotes;
sleep(15);
return $quotes[$symbol];
}
//ob_start("ob_gzhandler");
$server = new SoapServer("stockquote1.wsdl");
$server->addFunction("getQuote");
$server->handle();
?>
and I don't see any CPU load:
[dmitry@tpl CGI-DEBUG]$ time sapi/cli/php /home/dmitry/public_html/soap/examples/client8.php
98.42
real 0m15.105s
user 0m0.006s
sys 0m0.033s
I also run the same client on Windows looking into "perfmon" and CPU load was about 0%
during waiting.
Please provide a COMPLETE reproducable case (client that access external SOAP server, or local
client and srver), if you like me to fix the behavior.
------------------------------------------------------------------------
[2007-07-13 12:35:25] simon at connexon dot com
How do we do traces?
however I was able to isolate the problem. It's SSL that is causing CPU spikes. I ran a soap
location with HTTP://, then the CPU would "idle" while it's waiting for a response,
however using HTTPS:// the CPU really goes nuts!
Is this a problem in the core of PHP itself?
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=41943
--
Edit this bug report at https://bugs.php.net/bug.php?id=41943&edit=1