Swoole导出报 ERROR zm_deactivate_swoole (ERROR 103)
如何解决swoole导出报的如下错误?
注:不用swoole是没有问题的。
PHP Fatal error: Allowed memory size of 838860800 bytes exhausted (tried to allocate 32 bytes) in /home2/wwwroot/default/test/backend/web/excel/PHPExcel/Cell.php on line 586
[2017-06-12 11:25:32 ^21679.1] ERROR zm_deactivate_swoole (ERROR 103): Fatal error: Allowed memory size of 838860800 bytes exhausted (tried to allocate 32 bytes) in /home2/wwwroot/default/test/backend/web/excel/PHPExcel/Cell.php on line 586.
[2017-06-12 11:25:32 $21659.0] WARNING swManager_check_exit_status: worker#1 abnormal exit, status=255, signal=0
MasterPid=21650|Manager_pid=21659
Server: start.Swoole version is [1.8.11]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
脚本内存不够
刚才也遇到了,请问有人解决了吗。我是在swoole 异步导出Excel 的时候内存不够
PHP Fatal error: Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
2 {main}
thrown in /home/www/tp51/swoole/thinkphp/server/http_server.php on line 50
[thinkexceptionErrorException]
Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
#0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
#1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
#2 {main}
Exception trace:
() at /home/www/tp51/swoole/thinkphp/server/http_server.php:50
thinkError::appShutdown() at n/a:n/a
[2018-12-14 14:36:11 *7147.3] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
2 {main}
thrown in /home/www/tp51/swoole/thinkphp/server/http_server.php on line 50.
[2018-12-14 14:36:11 $7142.0] WARNING swManager_check_exit_status: worker#3 abnormal exit, status=255, signal=0
PHP Fatal error: Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
2 {main}
thrown in /home/www/tp51/swoole/thinkphp/server/http_server.php on line 50
[thinkexceptionErrorException]
Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
#0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
#1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
#2 {main}
Exception trace:
() at /home/www/tp51/swoole/thinkphp/server/http_server.php:50
thinkError::appShutdown() at n/a:n/a
[2018-12-14 14:36:11 *7149.3] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught thinkexceptionErrorException: SwooleServer::close() expects parameter 1 to be integer, object given in /home/www/tp51/swoole/thinkphp/server/http_server.php:50
Stack trace:
0 [internal function]: thinkError::appError(2, 'Swoole\Server::...', '/home/www/tp51/...', 50, Array)
1 /home/www/tp51/swoole/thinkphp/server/http_server.php(50): SwooleServer->close(Object(SwooleHttpRequest))
2 {main}
thrown in /home/www/tp51/swoole/thinkphp/server/http_server.php on line 50.
[2018-12-14 14:36:11 $7142.0] WARNING swManager_check_exit_status: worker#3 abnormal exit, status=255, signal=0