[GH-ISSUE #120] accept tcp [::]:443: accept4: too many open files #102

Open
opened 2026-02-26 12:33:58 +03:00 by kerem · 4 comments
Owner

Originally created by @qwerttvv on GitHub (Jun 7, 2020).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/120

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

Originally created by @qwerttvv on GitHub (Jun 7, 2020). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/120 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
Author
Owner

@malikshi commented on GitHub (Jun 7, 2020):

Just set log level=none

<!-- gh-comment-id:640295404 --> @malikshi commented on GitHub (Jun 7, 2020): Just set log level=none
Author
Owner

@cbeuw commented on GitHub (Jun 7, 2020):

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?

<!-- gh-comment-id:640296315 --> @cbeuw commented on GitHub (Jun 7, 2020): 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?
Author
Owner

@qwerttvv commented on GitHub (Jun 8, 2020):

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

<!-- gh-comment-id:640337199 --> @qwerttvv commented on GitHub (Jun 8, 2020): no one attacked...only i know the ip address. and usage statistics is here ![image](https://user-images.githubusercontent.com/56712217/83989124-00094a80-a978-11ea-9c82-66bf380319b5.png) 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`
Author
Owner

@qwerttvv commented on GitHub (Jun 12, 2020):

its happened 4 times

every time, service is unavailable

<!-- gh-comment-id:643065705 --> @qwerttvv commented on GitHub (Jun 12, 2020): its happened 4 times every time, service is unavailable
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#102
No description provided.