0

On my ubuntu 10.04 VPS, I get a regular 500 error on nginx (0.7.??)+ fcgi web server running a durpal site and when I trace the nginx error log I see plenty of these:

socket() failed: No buffer space available) while connecting to upstream ...,

I have tried differnt combination of configs but none fixed the problem. Currently I have 3 nginx workers, Keep-alive time out 15 seconds and and

PHP_FCGI_CHILDREN=5 PHP_FCGI_MAX_REQUESTS=1000

I really appreciate if you Can you suggest a solution to this annoying problem.

athspk
  • 137
  • 1
  • 10
alfish
  • 3,027
  • 15
  • 45
  • 68

3 Answers3

1

You are probably reaching your limit of RAM or of open sockets. Check the number of sockets with cat /proc/sys/fs/file-max and increase it with sysctl -w fs.file-max=[BIG NUMBER]

Andrei Mikhaltsov
  • 2,987
  • 1
  • 22
  • 31
0

your problem is in the upstream server, not in nginx, but I'm just guessing.

You can set your worker processes to 4 and then try

Gaurav Singh
  • 497
  • 2
  • 13
0

Add more RAM or free some system resources, to have allocable ram for system processes.

¿can you check free -mt or top, at the time that the error happens?

poisonbit
  • 797
  • 4
  • 6