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.
Related videos on Youtube
Author by
linux_user
Updated on September 18, 2022Comments
-
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 about 13 yearsso both
/proc/sys/net/core/somaxconn
and/etc/sysctl.conf
are persistent? -
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 over 9 yearsYou would have to modify /etc/sysctl.conf as root to make it persistent. /proc is not a real file system