Nginx Can't handeled More Perl CGI concurrent Request
Maxim Dounin
mdounin at mdounin.ru
Mon Jun 27 12:45:22 UTC 2016
Hello!
On Mon, Jun 27, 2016 at 01:36:50AM -0400, bhavik wrote:
> We are using Fastcgi module in nginx with perl.
>
> We are trying to send 200 concurrent perl cgi request, but after increase
> the 250 concurrent request to specific script, We are getting below error in
> nginx log file.
>
> [error] 23526#0: *3291 connect() to unix:/var/run/fcgiwrap.socket failed
> (11: Resource temporarily unavailable) while connecting to upstream, client:
> ::1, server: _, request: "POST /cgi-bin/example/example-xml.cgi HTTP/1.1",
> upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "localhost"
The message indicate that listen queue of the backend socket is
overflowed, your backend can't cope with load. Make sure to tune
your backend properly - number of processes and socket liste queue
are most important things to consider.
Note well that if you are in fact using fcgiwrap as the socket
name suggests, it's a wrong approach for a loaded server.
Consider converting your scripts to use FastCGI directly instead.
[...]
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list