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

启用P2P后,如果连接数比较多时,NPS服务器端的服务就直接停止,导致所有连接都无法使用了 #227

Open
terpcn opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@terpcn
Copy link

terpcn commented Dec 18, 2024

启用P2P后,如果连接数比较多时,NPS服务器端的服务就直接停止,导致所有连接都无法使用了!
如果删除所有P2P连接后,NPS服务很稳定,基本上没停止过。
请问如何处理呢?
另外,如果同一个被访问端,需要访问5个端口,设置P2P连接时,必须要分5条分别设置吗?
访问端自定义这5个端口的本地端口,是需要分5条记录吗?有没有更简单的方法呢?

@terpcn terpcn added the bug Something isn't working label Dec 18, 2024
@huanglei288766
Copy link

huanglei288766 commented Dec 28, 2024

我遇到了类似的问题
TCP模式,两三千的客户端数量
每隔一段时间,nps进程就会异常退出

排查后发现是goroutine数量达到了5W以上, threadNum 到了 10000

我的临时解决方式是:
提升golang的threadNum上线至100000,runtime/debug.SetMaxThreadNum(通过源码编译部署)
同时写了脚本检查nps进程状态 并 进行启动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants