-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
请问graph如何利用pprof进行内存分析? #905
Comments
我自己查了一下原因. falcon-plus/modules/graph/http/http.go Line 23 in da7e74c
同样的问题还出现在api和alarm组件里. 其他组件由于使用的是 net/http , 所以pprof都是可以正常使用的.
gin框架如果想使用pprof, 需要手动添加 https://github.com/gin-contrib/pprof/blob/506e7fc714ea7f2dfd31745ca8430d006733f6ff/go.mod#L5 falcon-plus现在govendor中的gin版本还停留在v1.1.4, 请问能否提个PR升级一下? |
可以升级gin:) 欢迎 PR @JimmyTinsley |
PR #906 |
现在遇到了graph内存缓慢持续上涨的情况, 想参照这篇文章 https://juejin.im/post/6844903855386263559 进行内存分析, 但是对graph的http端口加上 /debug/pprof 路径无法获得内存使用信息, 请问应该如何分析graph组件的内存找到故障原因?
The text was updated successfully, but these errors were encountered: