dpb42021 2018-04-02 20:52
浏览 79
已采纳

Symfony 3.3中允许的内存大小耗尽

On my production server with the following configuration:

  • Nginx
  • phpfpm-7.0
  • List item

Symfony3.3

I still receive 500 error while targeting home page with the following error in my phpFpm error logs acceding the app.php page:

[error] 16800#16800: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in .../vendor/composer/autoload_static.php on line 4248" while reading response header from upstream, client: XXXXXXXX, server: _, request: "GET /app.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "XXXXXXX"

I tried to increase the memory_limit param in those locations without any change:

  • /etc/php/7.0/fpm/php.ini
  • /etc/php/7.0/fpm/php-fpm.conf
  • /etc/php/7.0/fpm/pool.d/www.conf
  • /etc/php/7.0/cli/php.ini

Do you have any idea where could it come from?

  • 写回答

1条回答 默认 最新

  • doubi7496 2018-04-02 21:36
    关注

    Ok solved.

    My issue was coming from extra configuration which was into /etc/php/7.0/fpm/php-fpm.conf file overriding the php.ini conf.

    Thank you!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有偿求码,CNN+LSTM实现单通道脑电信号EEG的睡眠分期评估
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路