I have run a programas redis proxy which parses redis commands and 
redirects to redis servers.

I noticed it looks has memory leak issue.

I use pprof to check the memory usage. It sows the total memory usage is 
856.02MB. I understand the value is memory usage in heap.





If I check the runtime.memstats, it show the heapInUse is about 1.7GB.

<about:invalid#zClosurez>
<about:invalid#zClosurez>






























I use top to check RES of this program, it is 2.1G.


I'm surprised why the total value in pprof is very different from the real 
memory usage? (856.02MB vs 1.7G)

And How can I figure out those usage in heap which are not displayed in 
pprof?

Thanks.

-- 
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/fccb8a01-53e0-4ff7-a7a9-ebf6a575db3a%40googlegroups.com.

Reply via email to