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
Question: Steps to run Logstash with native Ruby and not JRuby #3233
Comments
@technosf If you have limited resources, you can tweak the maximum logstash heap size which is 500M by default, you could set it to 256M with |
The memory is pegged down, as you suggest @colinsurprenant, but it's the CPU utilization that is my focus. Being able to try native Ruby would have been informative. |
MRI is, for general performance, slower than JRuby in most thing I use. MRI's startup time is faster, but once JRuby gets going (15-30 seconds warmup), it's often 1.5 to 2x faster, if not more. I won't discourage experimentation, though! When I was fiddling with MRI yesterday, I found I could get Logstash under MRI mostly working, at least for plugin testing, by using MRI to build the elastic/logstash-devutils gem and the logstash-core gem from elastic/logstash, then installing them in MRI. Hope this helps you get started :) |
Oops, Didn't mean to close :) |
Commenting out the JRuby checks in devutils and I have, in local gems:
etc. Stuck on bundler - tried flipping a few switches in bundler.rb, but it's beyond my current ken of Ruby - guessing it's a path issue (I'm playing this out on windoze right now).
Thanks for your help Jordan. |
At this point only JRuby is supported for development and production. |
Hi,
I'm hoping to use logstash on a small server limited to embedded Java and 512M of RAM... And I can! It's just very slow start-up and sucks up a lot of resource that I need elsewhere.
I would like to use native Linux Ruby instead of JRuby to, hopefully, free up resources... So, I am setting USE_RUBY=1... but runner.rb dies at line 46:
kernel_require.rb:56:in 'require': cannot load such file -- i18n (LoadError)
I'm guessing that this is a path issue GEMS_HOME and GEMS_PATH and that there is interplay between logstash and the native Ruby libs. As I neophyte w.r.t. Ruby, could someone point me to a guide or point out some other doc that could point the way so that I have a stable install, even though I am aware of the date and ES limitations.
Thanks!
The text was updated successfully, but these errors were encountered: