Nginx POST requests are slow

Anoop Alias anoopalias01 at gmail.com
Fri Apr 12 10:43:11 UTC 2019


Most likely this is an issue with your PHP application. Try a simple
PHP code or a ready-made app like WordPress and see if you can recreate the
error.



On Fri, Apr 12, 2019 at 3:41 PM sharvadze <nginx-forum at forum.nginx.org>
wrote:

> For some reason all the POST request are delayed for about 1 min. Here is
> my
> configuration:
>
> /etc/nginx/nginx.conf
>
> sendfile on;
> tcp_nopush on;
> tcp_nodelay off;
> keepalive_timeout 65;
> types_hash_max_size 2048;
> proxy_buffering off;
> proxy_http_version 1.1;
> proxy_set_header Connection "";
>
> /etc/nginx/sites-available/default
>
> client_max_body_size 0;
> send_timeout 300;
> proxy_set_header   X-Real-IP $remote_addr;
> proxy_set_header   Host      $http_host;
>
> location / {
>             # First attempt to serve request as file, then
>             # as directory, then fall back to displaying a 404.
>             try_files $uri $uri/ /index.php?$query_string;
>     }
>
> /etc/php/7.2/fpm/pool.d/www.conf
>
> pm = ondemand
> pm.max_children = 60
> pm.start_servers = 20
> pm.min_spare_servers = 20
> pm.max_spare_servers = 60
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,283736,283736#msg-283736
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>


-- 
*Anoop P Alias*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190412/43ee74d7/attachment.html>


More information about the nginx mailing list