Skip to content
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

statsd buffer heap running out of memory #267

Open
ahaq0 opened this issue Nov 3, 2022 · 3 comments
Open

statsd buffer heap running out of memory #267

ahaq0 opened this issue Nov 3, 2022 · 3 comments

Comments

@ahaq0
Copy link

ahaq0 commented Nov 3, 2022

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?

@Jecoms
Copy link

Jecoms commented Dec 6, 2022

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.

v5@v5.1.1/statsd/buffer.go dominates the heap live size
google/pprof@v0.0.0-20221118152302-e6195bd50e2 tops the heap live objects (with stats/buffer.go a close third)

@fathiraz
Copy link

fathiraz commented Mar 1, 2023

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

@arturg-acoustic
Copy link

encountered the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants