From b38fedc4d2f0a9ac85e9f89fdc2cfd3a03df0144 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 7 Jun 2022 16:51:44 +0800 Subject: [PATCH] xray-core: increase nofile limitation This fixes "too many open files" error caused by max-file limitation when xray processes large traffic. Reported-by: Terry Ding Signed-off-by: Tianling Shen (cherry picked from commit d98fd528652c58e106a9bb4becd5ac8bb19a0ffb) --- net/xray-core/files/xray.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/xray-core/files/xray.init b/net/xray-core/files/xray.init index 04b00232b9..a24255e9d5 100755 --- a/net/xray-core/files/xray.init +++ b/net/xray-core/files/xray.init @@ -39,6 +39,8 @@ start_service() { procd_set_param env XRAY_LOCATION_ASSET="$datadir" procd_set_param file $conffiles + procd_set_param limits core="unlimited" + procd_set_param limits nofile="1000000 1000000" procd_set_param stdout 1 procd_set_param stderr 1 procd_set_param respawn -- 2.30.2