statsd buffer heap running out of memory
Hi,
Have a long running go routine to refresh a device auth token and was noticing a sharp increase in memory.
used pprof and idenitifed data dog's statsd buffer go keeping all the memory. More specifically, statsd.nextStatsBuffer have the max default size set for the buffer and initialize the buffer with the regular http client.
Tried forcing flush on statsd to no avail but the leak persists, any leads?
I've encountered a similar situation with statsd.nextStatsBuffer steadily growing its memory footprint in a long running process that has a couple of goroutines.
[email protected]/statsd/buffer.go dominates the heap live size
google/[email protected] tops the heap live objects (with stats/buffer.go a close third)
I've encountered similar case with statsd.nextStatsBuffer in v4.2.0
statsd is on the top both of allocs and heap analyzed using pprof
encountered the same problem
Any solutions?
Any solutions?
Increase your memory might help. I find that newStatsBuffer takes up alot of memory as well.