-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 or other allocation problems (Logstash #4745
Comments
Thanks for the report. We need heap dump and config information to start with |
Most of the config (the /etc/sysconfig/logstash) is above. The various config files in /etc/logstash/conf.d (catted together) are:
How can I get the heap dump? As you can see above, $LS_OPTS already seems to have a '-w' flag. |
To generate the heap dump there are serveral ways, but you could use for example the |
I will use the approach outlined here: https://discuss.elastic.co/t/how-to-capture-a-heap-dump-from-a-running-jvm-logstash/85 Is there a chance of any sensitive information being in the heap dump (and if so, is there a way to get this to you all out of band)? |
btw, it looks like Logstash is saving a heapdump on the OOM crash, in /opt/logstash. The ones I have are a little bit old, so I'm moving them out of the way, and will try to collect a fresher one. Using the approach outlined in the previous link doesn't seem to work as far as collecting from a process that crashes. |
This seems to be related to logstash-plugins/logstash-output-elasticsearch#392 and cheald/manticore#45 |
This has been fixed in version ES output version 2.5.3. To install this you can do:
|
Will this be backported to the packages for 2.1.x (e.g., 2.1.3), or only hit 2.2.x? |
@wyardley this a plugin fix, you just need to update the plugin to 2.5.3. Since other plugins depend on manticore, you need to update all plugins with the same dependencies:
don't mind the extra error, the update will work. I'm investigating why this is happening |
Just did the |
any logging messages on the logstash side? is the logstash process running? |
That's the new content of logstash.log. logstash.err is empty for today. Got a medium urgency update to filebeat now through apt, gonna try that now and see if it might be related. Update: My systemctl was taking some time to display logstash as |
@myth which version of logstash was this? I tested with 2.1.1, but there might be other versions that trigger this |
2.2.2 |
strange..please post the config. my experiment did not trigger that:
|
I was going to try to re-create the steps to provide you with more details, and started by reinstalling logstash from the package repository, and update the plugins, but the plugins were already updated (did not purge) and that seemed to resolve the issue. I can try to fire up a similar setup on another VM and see if i can re-create the steps using the config I have. |
ok. just for the sake of tidiness, since it's no longer the original concern of this issue, please open another if you're able to replicate this, thanks. |
Sure, will do. I've been tracking these OOM isses and related issues in other plugins and I appreciate the effort. So thanks and keep up the good work. |
@jsvd understood, but we use the RPM packages; the jruby libraries (including the stock plugins) are vendored into the package. So I'm asking if the next iteration of the package will have those updated. |
2.1.2 using the "official" RPM package on CentOS 7 with OpenJDK v1.8.0.71, I'm continuing to see memory allocation grow over time (implies a memory leak to me) (though apparently not the same issue as #3722)
and
The current system has 7566 MB of RAM. Let me know what other information I can provide to help diagnose this. I have the same behavior on 3 systems that I'm using as part of an ELK install (the logstash nodes are dedicated to logstash).
The text was updated successfully, but these errors were encountered: