Welcome! Log In Create A New Profile

Advanced

Re: Nginx + php-fpm

Iurii Medvedev
March 29, 2018 10:34AM
В нехватке памяти, нужно проверить настройки php, nginx тут не причём

On Thu, Mar 29, 2018 at 6:27 PM Goti <nginx-forum@forum.nginx.org> wrote:

> Всем привет, php жрет всю память, не могу понять почему ...
> Конфиг:
> server {
> listen 80 default_server;
> listen [::]:80 default_server;
>
> server_name _;
>
> location / {
> root /var/www/html/dist/;
> }
>
> location /search/ {
> proxy_method GET;
> proxy_pass http://172.18.0.4:9200/index/index/_search$args
> ;
> }
>
> location ~ /api/(.+)$ {
> fastcgi_pass unix:/run/php/php7.1-fpm.sock;
>
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME
> /var/www/html/backend/web/app.php;
> fastcgi_param SCRIPT_NAME /app.php;
> fastcgi_param REQUEST_URI /$uri?$args;
> }
> }
>
>
>
> Вот лог:
> 2018/03/29 13:26:53 [error] 295#295: *3 FastCGI sent in stderr: "PHP
> message: PHP Fatal error: Allowed memory size of 1073741824 bytes
> exhausted
> (tried to allocate 20480 bytes) in
>
> /var/www/html/backend/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
> on line 107
> PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes
> exhausted (tried to allocate 20480 bytes) in
>
> /var/www/html/backend/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php
> on line 626" while reading response header from upstream, client:
> 127.0.0.1,
> server: _, request: "GET /api/user/login-check HTTP/1.1", upstream:
> "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "localhost"
>
>
>
> В чем может быть проблема ?
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?21,279235,279235#msg-279235
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

--
With best wishes
Iurii Medvedev
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx + php-fpm

Anton Kiryushkin April 11, 2013 06:12AM

Re: nginx + php-fpm

Maxim Dounin April 11, 2013 07:18AM

Re: nginx + php-fpm

Anton Kiryushkin April 11, 2013 07:36AM

Re: nginx + php-fpm

Maxim Dounin April 11, 2013 07:46AM

Re: Nginx + php-fpm

Iurii Medvedev March 29, 2018 10:34AM

Re: Nginx + php-fpm

Goti March 29, 2018 10:40AM

Re: Nginx + php-fpm

Konstantin Tokarev March 29, 2018 10:44AM

Re: Nginx + php-fpm

Goti March 29, 2018 10:45AM

Re: Nginx + php-fpm

Goti March 29, 2018 10:46AM

Re: Nginx + php-fpm

Валентин Бартенев March 29, 2018 05:06PM

Re: Nginx + php-fpm

Goti March 30, 2018 02:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 227
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready