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

Memory leak seen when enabling reload on filebeat.config.prospectors #5139

Closed
vjsamuel opened this issue Sep 8, 2017 · 1 comment
Closed

Comments

@vjsamuel
Copy link
Contributor

vjsamuel commented Sep 8, 2017

Version: HEAD on master
OS: golang:1.8 docker container

On using the following config:

filebeat.config.prospectors:
  enabled: true
  path: prospectors.d/*.yml
  reload: 
    enabled: true
    period: 5s

It is seen that filebeat memory usage on docker keeps growing until a point that it is OOM killed.

On doing more analysis with pprof, it is seen that there are many unused prospector objects that are still lingering around.

Short term work around can be to just create runner objects only when a new cfg file comes in or a config is removed. This avoids creating Runners which causes the leak in filebeat.

@tsg
Copy link
Contributor

tsg commented Oct 9, 2017

Closing this one as the short term solution was implemented.

@tsg tsg closed this as completed Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants