Welcome! Log In Create A New Profile

Advanced

[400req/s] php finished executing ,but didn't push output to nginx,

Posted by billy 
my env:
nginx-0.8.45+php-5.3.6(php-fpm)+rhel 5.4

part of nginx conf:
#fastcg config
fastcgi_connect_timeout 5s;
fastcgi_send_timeout 5s;
fastcgi_read_timeout 5s;
fastcgi_buffer_size 4k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 8k;
fastcgi_temp_file_write_size 16k;
fastcgi_intercept_errors on;
proxy_ignore_client_abort on;
php-fpm config:

pm = dynamic
pm.max_children = 300
pm.min_spare_servers = 25
pm.max_requests = 500
listen = 127.0.0.1:9000

rlimit_files = 102400
request_slowlog_timeout =1s
request_terminate_timeout = 5s
pm.status_path = /php_status


my server will serv 400req/s at peak. i found at that time ,php finished
process the request,but didn't push the output to the nginx
immediately(about 10 seconds,nginx got nothing from upstream(the php-fpm
)), it cause the client abort the request and make nginx responds with 499
error. the server seems at a fine load,enough ram,enough cpu,io is not high.
anyone has this situation?

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 48
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready