Skip to content

Instantly share code, notes, and snippets.

@breml
Created November 30, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breml/3c1d66d948ea040b8c89 to your computer and use it in GitHub Desktop.
Save breml/3c1d66d948ea040b8c89 to your computer and use it in GitHub Desktop.
Setup environment for debug logstash plugins

Debugging Logstash Plugins

Login shell, for rvm to work properly

/bin/bash --login

use JRuby

rvm use jruby

Set JRUBY_OPTS for nailgun server

declare -x JRUBY_OPTS="-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify"

Start nailgun derver

jruby --ng-server

Set JRUBY_OPTS for nailgun client

declare -x JRUBY_OPTS="--dev --ng"

Run tests

rspec spec/filters/mutate_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment