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

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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?