Difference between revisions of "Too many open files"
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | [1] 2023/02/28 11:40:55.704066 [ERR] [[Temporary Client Accept Error]](accept tcp [::]:4222: accept4: | + | [1] 2023/02/28 11:40:55.704066 [ERR] [[Temporary Client Accept Error]](accept tcp [::]:4222: accept4: too many open [[files]]), sleeping 10ms |
+ | [[/proc/sys/fs/file-nr]] | ||
+ | [[/proc/sys/fs/file-max]] | ||
− | * {{ | + | nats# cat [[/proc/sys/fs/file-nr]] |
+ | 928 0 524288 | ||
+ | |||
+ | |||
+ | /etc/security/limits.conf | ||
+ | @users hard nofile 524288 | ||
+ | |||
+ | |||
+ | [[/etc/security/limits.conf]] | ||
+ | [[/etc/sysctl.conf]] | ||
+ | [[sysctl -a]] | ||
+ | |||
+ | |||
+ | * {{sysctl}} |
Latest revision as of 10:25, 1 March 2023
[1] 2023/02/28 11:40:55.704066 [ERR] Temporary Client Accept Error(accept tcp [::]:4222: accept4: too many open files), sleeping 10ms
/proc/sys/fs/file-nr /proc/sys/fs/file-max
nats# cat /proc/sys/fs/file-nr 928 0 524288
/etc/security/limits.conf @users hard nofile 524288
/etc/security/limits.conf /etc/sysctl.conf sysctl -a
Advertising: