zhboner / realm

A network relay tool
MIT License
1.54k stars 285 forks source link

2.2.2 [realm_core::tcp][ERROR][tcp]failed to accept: Too many open files #60

Closed jjmmoodd closed 2 years ago

jjmmoodd commented 2 years ago

大佬好~ 2.2.2版本,跑个把小时日志里全是这个错误 [realm_core::tcp][ERROR][tcp]failed to accept: Too many open files

是资源没有回收吗? ulimit -SHn 1024000 已经设置到这么大了

请问怎么解决这个问题?

zephyrchien commented 2 years ago

ulimit只适用于当前会话,不信你看realm启动时打印的nofile是不是1024

如果你用systemd的话可以在service文件里单独定义资源限制。我个人建议直接用realm的-n 参数,很方便。

2022年5月4日(水) 午後10:01 jjmmoodd @.***>:

大佬好~ 2.2.2版本,跑个把小时日志里全是这个错误 [realm_core::tcp][ERROR][tcp]failed to accept: Too many open files

是资源没有回收吗? ulimit -SHn 1024000 已经设置到这么大了

请问怎么解决这个问题?

— Reply to this email directly, view it on GitHub https://github.com/zhboner/realm/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMH47KXFWODRJI3GMP2OG7LVIJYJ7ANCNFSM5VB4X5NA . You are receiving this because you are subscribed to this thread.Message ID: @.***>