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

请教大神一个pprof分析内存(inuse_space)占用的问题,为什么会是负数 #36

Closed
qifengzhang007 opened this issue Sep 2, 2020 · 1 comment

Comments

@qifengzhang007
Copy link

qifengzhang007 commented Sep 2, 2020

我使用的命令:
go tool pprof -inuse_space http://127.0.0.1:20191/debug/pprof/heap?seconds=10

遇到的问题:
inuse_space 怎么都是负数?该怎么理解?

内存分析1

内存分析1

如果以上图片无法查看,请直接单击图片地址查看:
http://139.196.101.31:2080/images/question1.png
http://139.196.101.31:2080/images/question2.png

@hyper0x
Copy link
Owner

hyper0x commented Sep 20, 2020

你最好生成文件,使用debug=2,然后看看文件里的记录。到GoHackers的QQ群里(361287127)讨论吧。

有可能是你程序的“在用内存”减少了导致的。

@hyper0x hyper0x closed this as completed Sep 21, 2020
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

2 participants