Bug #62337 [Opn->Fbk]: Randomly getting exhausted memory

From: Date: Fri, 23 Oct 2020 12:44:22 +0000
Subject: Bug #62337 [Opn->Fbk]: Randomly getting exhausted memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229869@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62337&edit=1

 ID:                 62337
 Updated by:         cmb@php.net
 Reported by:        jrbasso at gmail dot com
 Summary:            Randomly getting exhausted memory
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            SOAP related
 Operating System:   Linux 3.2.12-3.2.4.amzn1.x86_64
 PHP Version:        5.3.14
 Block user comment: N
 Private report:     N

 New Comment:

Does this still happen with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2013-12-05 11:28:19] benoit dot montuelle at gmail dot com

Hello, 

We run into a very similar issue on our CentOS 6.4 box (running PHP 5.3.3). 

The cause of error (in our case) was a disk partition full error leading to corrupted wsdl cache
file. 

In the SoapClient constructor it then tries to allocate 4G of memory and get blocked by php ini
directive.

------------------------------------------------------------------------
[2012-06-16 01:03:10] jrbasso at gmail dot com

Description:
------------
Randomly the SoapClient constructor is trying to allocate huge amounts of memory 
and causing the error Error: Allowed memory size of 268435456 bytes exhausted 
(tried to allocate 18446744072233156736 bytes)

The amount goes from 2GB to numbers like above.

This started to happen when we switched from 5.3.10 to 5.3.13 (and now 5.3.14).

I am not able to reproduce the error easily, once it do not happens in all the 
requests. The constructor is always called with the same parameters.

Soap configuration:
Soap Client	enabled
Soap Server	enabled

Directive	Local Value
soap.wsdl_cache	1
soap.wsdl_cache_dir	/tmp
soap.wsdl_cache_enabled	1
soap.wsdl_cache_limit	5
soap.wsdl_cache_ttl	86400


Test script:
---------------
$soap = new SoapClient('https://ics2ws.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.47.wsdl',
array('merchantId' => '???', 'transactionKey' =>
'???'));



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=62337&edit=1


Thread (5 messages)

« previous php.bugs (#229869) next »