• No related posts.

      • No related posts.

        • No related posts.

          • No related posts.

              No related posts.

            TCP: too many of orphaned sockets

            The tcp_max_orphans variable tells the kernel how many TCP sockets that are not attached to any user file handle to maintain. In case this number is exceeded, orphaned connections are immediately reset and a warning is printed.

            The only reason for this limit to exist is to prevent some simple DoS attacks. Generally you should not rely on this limit, nor should you lower it artificially. If need be, you should instead increase this limit if your network environment requires such an update. Increasing this limit may require that you get more memory installed to your system. If you hit this limit, you may also tune your network services a little bit to linger and kill sockets in this state more aggressively.

            This variable takes an integer value and is per default set to 8192, but heavily depends upon how much memory you have. Each orphan that currently lives eats up 64Kb of unswappable memory, which means that one hell of a lot of data will be used up if problems arise.

            Note If you run into this limit, you will get an error message via the syslog facility kern.info that looks something like this:

            TCP: too many of orphaned sockets

            If this shows up, either upgrade the box in question or look closer at the tcp_fin_timeout or tcp_orphans_retries which should give you some help with getting rid of huge amounts of orphaned sockets.

            No related posts.

            This entry was posted in Centos, Debian, Fedora, Linux, Redhat, Ubuntu and tagged , , .

            Leave a Reply