root@host:/# tail /var/log/php5-fpm.log
[04-Nov-2012 22:31:14] NOTICE: fpm is running, pid 2368
[04-Nov-2012 22:31:14] NOTICE: ready to handle connections
[04-Nov-2012 22:31:18] WARNING: [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 8 children, there are 0 idle, and 11 total children
[04-Nov-2012 22:31:19] WARNING: [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 16 children, there are 0 idle, and 14 total children
and
root@host:/# tail /var/log/nginx/error.log
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
2012/11/04 20:13:35 [alert] 1080#0: accept4() failed (24: Too many open files)
anybody got a quick idea why i am only getting 502 bad gateways from nginx?
clearly it cant reach php-fpm :(
kinda desperate so sorry for the messy post