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 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么