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

当并发newStream 较高时,recvLoop存在内存泄露 #98

Closed
gjmzj opened this issue May 7, 2024 · 2 comments
Closed

当并发newStream 较高时,recvLoop存在内存泄露 #98

gjmzj opened this issue May 7, 2024 · 2 comments

Comments

@gjmzj
Copy link

gjmzj commented May 7, 2024

本地测试服务端 http://127.0.0.1:18080/ 是经过smux 多路复用的;

用这个压测参数时 ab -n 500 -c 5 http://127.0.0.1:18080/,没发生内存泄露

用 ab -n 5000 -c 50 http://127.0.0.1:18080/时有内存泄露,使用go tool pprof http://localhost:6060/debug/pprof/heap\?gc\=1

image

@gjmzj
Copy link
Author

gjmzj commented May 12, 2024

可能是自己代码问题,还在排查中,有进展再来同步

@gjmzj
Copy link
Author

gjmzj commented May 12, 2024

找到问题了,是我自己代码问题,sorry

@gjmzj gjmzj closed this as completed May 12, 2024
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

1 participant