[ACCEPTED]-Invalid argument" setting key "net.core.somaxconn-sysctl
Same issue I got into when I tried to fine 11 tune my nginx. This is the problem with 10 the patch that been made to Ubuntu kernel. The
sk_max_ack_backlog 9 field of the sock structure is defined as 8 unsigned short.
Therefore, the backlog argument 7 in inet_listen()
shouldn't exceed USHRT_MAX
. The backlog argument 6 in the listen()
syscall is truncated to the somaxconn
value. So, the somaxconn
value shouldn't exceed 65535
(USHRT_MAX
).
So 5 in short to make your net.core.somaxconn
work you should not 4 give value greater then 65535
net.core.somaxconn 3 = 65535
This is sad but we have to live with 2 it until unless you are ok to repatch your 1 kernel: https://lists.ubuntu.com/archives/kernel-team/2013-October/033041.html
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.