Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LimitNOFILE to service files #82

Closed
wants to merge 1 commit into from
Closed

Conversation

CiXY
Copy link

@CiXY CiXY commented Jul 16, 2021

在trojan-go的systemd模版中添加LimitNOFILE解决使用一段时间发生断连的情况
参考:
p4gefau1t/trojan-go#313

在trojan-go的systemd模版中添加LimitNOFILE解决使用一段时间发生断连的情况
参考:
p4gefau1t/trojan-go#313
@malikshi
Copy link

Some vps not support that kind of setting i think.
Isn't better to set certain limit number.
LimitNOFILE=51200

@CiXY
Copy link
Author

CiXY commented Jul 16, 2021

I have changed it on my vps. But disconnection still happened. it may need more test

@CiXY CiXY closed this Jul 16, 2021
@malikshi
Copy link

@CiXY you may try this

LimitNOFILE=51200
LimitNPROC=infinity

For public servers add more zero xD 512000. I set this one with traffic vnstat in vps 150-400Mbps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants