I've noticed that my server seems to be very slow to accept connections - i.e. when analyzing the load time using the Chrome event map, it shows that some tasks can spend multiple seconds waiting for the server to accept a connection. For example with the below:
- The initial page for my website (Wordpress, so I guess an index.php) spends half a second just waiting for the server to respond. (The site is http://heather.sh)
- Whilst requesting an image (700kb), Chrome is again waiting for over 5 seconds in the waiting state before it starts to receive data (at which point it finishes very quickly). (The site is http://submarineapp.co.uk)
Does anyone have any thoughts on what could be going on here? Why is my server so slow at accepting connections? Could I have some config wrong? It's not because of power or overload I think - the load value rarely gets above 0.1 (it was 0.05 when I ran these tests just now), and I have plenty of available memory. Also, the dedicated 100Mbps port is currently under less than 50kbps. The server runs CentOS 6.
Thanks for any help!