Tune TCP: socket backlog

Increase the maximum listen backlog for sockets.

sysctl -w net.core.somaxconn=65535

tool
linux133 commands
tags
linuxnetworksysctltcptuning

More linux commands

  • lscpu

    Show the CPU architecture and the number of cores.

  • find / -type f -size +100M -exec ls -lh {} \; 2>/dev/null | sort -k5 -rh | head -20

    Find files larger than 100MB and show the 20 biggest.

  • du -sh /* 2>/dev/null | sort -rh | head -15

    Show the 15 largest top-level directories.

  • ss -tlnp

    Show listening TCP ports with PID and process name. The modern replacement for netstat.

  • ss -tlnp | grep :<port>

    Show which process is listening on a given port.

all 133 linux commands