-
Notifications
You must be signed in to change notification settings - Fork 135
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
heap samples are not what I expect #116
Comments
As golang/go#54223 (comment) said, heap profiles are only updated when the gc runs. Hope this could help you. |
@doujiang24 Nice! Thank you. |
But I think they are two different situations. About the one I proposed, I think holmes should dump after next gc runs while the heap peak occurs. In the following processes, the heap profiles are stale and cann't help us find out what incurs the problem:
|
You should see both the inuse and alloc space together to help locating the root cause A big heap object will cause rss spike, if it is not used any more later, it will not appear on the inuse object pprof list, but you can find it in the alloc object list All objects allocated after app started will be counted in the alloc objects/space |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Haven't tried.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I wrote a piece of code:
Then I curled the api to trigger the code to run.
What did you expect to see?
What did you see instead?
So, it seems like that the samples pprof dumps in time are wrong.
For more discussion, Please see golang issue #54233
The text was updated successfully, but these errors were encountered: