Cloak icon indicating copy to clipboard operation
Cloak copied to clipboard

accept tcp [::]:443: accept4: too many open files

Open qwerttvv opened this issue 4 years ago • 4 comments

v2.2.0

Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files" Jun 07 22:44:20 KKK ss-server[464]: time="2020-06-07T22:44:11+08:00" level=error msg="accept tcp [::]:443: accept4: too many open files"

log file fills up 20g hard disk very quickly, and cpu full load

qwerttvv avatar Jun 07 '20 15:06 qwerttvv

Just set log level=none

malikshi avatar Jun 07 '20 23:06 malikshi

Sorry for the excessive space use caused. It now doesn't try to accept in a tight loop but instead retries with gradually increasing pause. But have you been DDOSed when this accept error started?

cbeuw avatar Jun 07 '20 23:06 cbeuw

no one attacked...only i know the ip address.

and usage statistics is here

image

by the way, i set iptables rule like this -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

qwerttvv avatar Jun 08 '20 03:06 qwerttvv

its happened 4 times

every time, service is unavailable

qwerttvv avatar Jun 12 '20 05:06 qwerttvv