# Takes too long for a connection to be established!

**URL:** <https://www.ruby-forum.com/t/takes-too-long-for-a-connection-to-be-established/218279>\
**Category:** NGINX\
**Created:** [March 27, 2012, 8:14am UTC](https://www.ruby-forum.com/t/takes-too-long-for-a-connection-to-be-established/218279 "2012-03-27T08:14:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 27, 2012, 8:14am UTC](https://www.ruby-forum.com/t/takes-too-long-for-a-connection-to-be-established/218279/1 "2012-03-27T08:14:27Z")

</div>

Hi,

I am new to nginx, and I am using it currently on my server to serve  
videos to users. a few days ago the server started becoming extremely  
slow while have around 500-600 users online, note that I have a 1gbps  
line on the server so its not the bandwidth. it takes the server around  
a minute or 2 to respond but once the file starts streaming the speed is  
decent, so its taking the server long to spot the file I guess! I was  
wondering if anyone knows how I can fix this? I have already tried  
increasing the open file limit and worker limit, but still not luck!!!

I am also interested to hire someone to fix this for me if they know how  
to do it exactly and have previous experience with a similar situation.

Regards

Posted at Nginx Forum:

> **[Takes too long for a connection to be established!](https://forum.nginx.org/read.php?2,224460,224460#msg-224460)**
>
> Hi, I am new to nginx, and I am using it currently on my server to serve videos to users. a few days ago the server started becoming extremely slow while have around 500-600 users online, note that I have a 1gbps line on the server so its not the...
