Announcement

Collapse
No announcement yet.

Improve page load speed on Nginx and Apache - TIME_WAIT issue

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Improve page load speed on Nginx and Apache - TIME_WAIT issue

    Problem: You see that there are lot of TIME_WAIT connections associated with the Apache and Nginx (or any webserver for that matter) webservers.

    Possible Solution: To reduce the number of TIME_WAIT connections, we have done the following changes in /etc/sysctl.conf:

    net.ipv4.tcp_tw_reuse=1
    net.ipv4.tcp_tw_recycle=1


    Then run 'sysctl -p' (no quotes) as root to reload the sysctl file without a reboot. Be sure to backup the sysctl.conf file before making changes to it.
    www.AYKsolutions.com
    From Shared to Dedicated
    Professional. Painless. Polite.
Working...
X