nusoap引起的内存溢出

问题:

// php报错
PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 1340082560 bytes) in /nusoap/nusoap.php on line 301
// php-fpm报错
WARNING: failed to acquire scoreboard

解决:

将下列代码

$GLOBALS['_transient']['static']['nusoap_base']->globalDebugLevel = 9;

修改为

$GLOBALS['_transient']['static']['nusoap_base']->globalDebugLevel = 0;

原因:

太多的debug日志写入内存导致内存溢出

参考: https://stackoverflow.com/a/7370418/6313160

Author: thinkwei

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注