Linux 上的最大套接字数

The*_*uad 15 networking linux socket

服务器似乎被限制在 ~32720 个套接字......我已经尝试了所有已知的变量更改来提高这个限制。但是服务器仍然限制在 32720 个打开的套接字,即使还有 4Go 的空闲内存和 80% 的空闲 cpu...

这是配置

~# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63931
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 798621
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 2048
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63931
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

net.netfilter.nf_conntrack_max = 999999
net.ipv4.netfilter.ip_conntrack_max = 999999
net.nf_conntrack_max = 999999
Run Code Online (Sandbox Code Playgroud)

有什么想法吗 ?(这个问题在堆栈溢出时被问到,到目前为止没有运气)

The*_*uad 8

我发现什么限制了一切:

max_map_count
Run Code Online (Sandbox Code Playgroud)

感谢所有回答的人!