Hello everyone, recently I encounted a strange thing when using go pprof.

A project written in Go was often killed by Linux OOM-killer after running 
for a while . 
So I used go pprof to find out if any memory leaks there. 

But when RSS of the process reached to nearly 20G(by top command), pprof 
showed
that only 10G was allocated on heap.

this is the peek view in go pprof.
——————------------------------------------------------------------------------------------------------
File: logic 
Type: alloc_space 
Time: Jul 7, 2020 at 8:38pm (CST) 
Showing nodes accounting for 10991.31MB, 100% of 10991.31MB total 
——————------------------------------------------------------------------------------------------------
  

In my understanding, alloc_space is the allocated bytes throughout the 
run-time of the program. So are there any other memory used by Go program 
but not recored in pprof?
And where may the extra 10G be used.

Thanks
Ge 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/510ace94-946a-4cd1-a62f-44effe9f3bdfn%40googlegroups.com.

Reply via email to