<div dir="ltr">Hi,<div><br></div><div>     Problem was with monit which was kept on restarting nginx persistently. <br><br>Thanks !!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 7:23 PM, shahzaib shahzaib <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have also enabled debug logging and found 'Resource temporarily unavailable' messages. Below is the reference sample :<br><br><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 event timer add: 18: 15000:1429537304304</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 post event 0000000000A372D0</div><div>2015/04/20 18:41:29 [debug] 12917#0: posted event 0000000000A372D0</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 delete posted event 0000000000A372D0</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 http keepalive handler</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 malloc: 0000000000ACF6C0:262144</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 recv: fd:18 -1 of 262144</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 recv() not ready (11: Resource temporarily unavailable)</div><div>2015/04/20 18:41:29 [debug] 12917#0: *2711 free: 0000000000ACF6C0</div><div>2015/04/20 18:41:29 [debug] 12917#0: posted event 0000000000000000</div><div>2015/04/20 18:41:29 [debug] 12917#0: worker cycle</div><div>2015/04/20 18:41:29 [debug] 12917#0: accept mutex locked</div><div>2015/04/20 18:41:29 [debug] 12917#0: epoll timer: 15000</div><div>2015/04/20 18:41:29 [debug] 12913#0: epoll: fd:18 ev:0004 d:00007F58B7D89238</div><div>2015/04/20 18:41:29 [debug] 12913#0: *2698 http run request: "/files/videos/2015/04/15/14290705507373d-360.mp4?"<br><br>Could that be the issue ?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 6:18 PM, shahzaib shahzaib <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>  We're using nginx to upload and serve videos files around 1GB of file size via http. We've been receiving complains from some customers that uploading has some issue and sometimes user are unable to upload videos successfully. Server is installed with Nginx-1.4.7+php-fpm, ffmpeg, MP4Box. On checking the nginx logs, we didn't got anything but Following messages :<br><br><div>2015/04/16 16:49:53 [alert] 15077#0: open socket #81 left in connection 49</div><div>2015/04/16 16:49:53 [alert] 15084#0: open socket #48 left in connection 19</div><div>2015/04/16 16:49:53 [alert] 15077#0: open socket #84 left in connection 51</div><div>2015/04/16 16:49:53 [alert] 15084#0: open socket #52 left in connection 21</div><div>2015/04/16 16:49:53 [alert] 15077#0: open socket #87 left in connection 53</div><div>2015/04/16 16:49:53 [alert] 15079#0: open socket #81 left in connection 46</div><div>2015/04/16 16:49:53 [alert] 15084#0: open socket #53 left in connection 22</div><div><br></div>Here is the nginx.conf<br><br><div>user  nginx;</div><div>worker_processes  16;</div><div>worker_rlimit_nofile 300000; #2 filehandlers for each connection</div><div>error_log /usr/local/nginx/logs/error.log crit;</div><div>#access_log logs/access.log;</div><div>#pid        logs/nginx.pid;</div><div><br></div><div><br></div><div>events {</div><div>    worker_connections  6000;</div><div>    use epoll;</div><div>}</div><div>http {</div><div>    include       mime.types;</div><div>    default_type  application/octet-stream;</div><div>    client_max_body_size 3000M;</div><div>    client_body_buffer_size 2000M;</div><div>    sendfile_max_chunk 128k;</div><div>    client_header_buffer_size 256k;</div><div>    large_client_header_buffers 4 256k;</div><div>    output_buffers 1 512k;</div><div>    server_tokens off; #Conceals nginx version<br></div><div>   access_log  /usr/local/nginx/logs/access.log ; </div><div>   access_log off;</div><div>    sendfile        off;</div><div>       ignore_invalid_headers on;</div><div>    client_header_timeout  60m;</div><div>    client_body_timeout 60m;</div><div>    send_timeout     60m;</div><div>    reset_timedout_connection on;    </div><div>    </div><div>        keepalive_timeout 15;</div><div>        include "/usr/local/nginx/conf/vhosts/*.conf";</div><div>    error_page 404 = /thumb.php;</div><div>    error_page   403 /forbidden.html;</div><div>}<br><br>If anyone can help me with this ?<br><br>Regards.</div></div><span><font color="#888888"><div>Shahzaib</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>