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

栈内存占用较多,1w连接占用 700M内存,是哪里配置的问题吗? #124

Open
GitChenfan opened this issue Nov 27, 2024 · 7 comments

Comments

@GitChenfan
Copy link

栈内存占用较多,1w连接占用 700M内存,是哪里配置的问题吗?

@wind-c
Copy link
Owner

wind-c commented Nov 28, 2024

这个两个buffer参数对初始内存大小影响较大。可以更改试试!
Screenshot_20241128_142523_com.github.android.jpg

@wind-c
Copy link
Owner

wind-c commented Nov 28, 2024

1W连接占700M内存多吗?10W连接才7G内存,现在内存不值钱。

@GitChenfan
Copy link
Author

10W的时候,16G都要跑没了。就是后面越来越大才来咨询一下

@GitChenfan
Copy link
Author

而且是在光建立连接的时候,还没上报数据。

@wind-c
Copy link
Owner

wind-c commented Nov 28, 2024

这两个参数改成1024会降两三百M,可以试试看。

@GitChenfan
Copy link
Author

我用的默认值就是 1024,我试试再改小下

@xvjialing
Copy link

为啥我1W连接上去直接5个多G内存了

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

No branches or pull requests

3 participants