I'm trying to figure out what looks like a strange memory allocation
problem in one of our applications.
It seems that for some reason which I can't determine the memory allocated
by gob.Encoder's internal byte slice is not being freed, or at least that's
what the profile seems to indicate.
Here's a link to a portion of the relevant pprof diagram with --inuse_space:
The source of the original Encode() call is from Save() method from the
I confirmed that the method finished running and is not blocked, and the
invocation only happens once on startup of the application. At the point
this heap dump was taken it had already
been running for a number of days...
So my question is why does it seem like this memory is still in use?
This is with go1.3 on Linux/amd64
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 email@example.com.
For more options, visit https://groups.google.com/d/optout.