How can I increase the value of somaxconn?

74,785

Solution 1

Yes. Alternatively, you can use:

sysctl -w net.core.somaxconn=1024

Add net.core.somaxconn=1024 to /etc/sysctl.conf for it to become permanent (be reapplied after booting).

Solution 2

yes /proc/sys/net/core/somaxconn is writable if you have the permissions to do so.

Share:
74,785

Related videos on Youtube

linux_user
Author by

linux_user

Updated on September 18, 2022

Comments

  • linux_user
    linux_user almost 2 years

    I can check its value by cat /proc/sys/net/core/somaxconn,

    is it OK if I change it simply by echo 1024 > /proc/sys/net/core/somaxconn?

  • linux_user
    linux_user about 13 years
    so both /proc/sys/net/core/somaxconn and /etc/sysctl.conf are persistent?
  • Eduardo Ivanec
    Eduardo Ivanec about 13 years
    @linux_user - no, only modifying /etc/sysctl.conf is persistent. /proc is not a "real" filesystem, only a filesystem interface to the kernel.
  • Ganesh Krishnan
    Ganesh Krishnan over 9 years
    You would have to modify /etc/sysctl.conf as root to make it persistent. /proc is not a real file system