Skip to content

Instantly share code, notes, and snippets.

@colinsurprenant
Created July 29, 2013 18:38
Show Gist options
  • Save colinsurprenant/6106575 to your computer and use it in GitHub Desktop.
Save colinsurprenant/6106575 to your computer and use it in GitHub Desktop.
RedStorm JRuby performance options
class SomeTopology < RedStorm::DSL::Topology
configure do
debug false
# I reached optimal perf using one worker per node.
# set num_workers to N where N is the number of nodes in your cluster
num_workers 1 # one-node cluster
set "topology.worker.childopts", "-Djruby.compile.invokedynamic=true -Djruby.jit.threshold=0 -Djruby.jit.max=-1 -Djruby.ji.objectProxyCache=false"
end
end
@colinsurprenant
Copy link
Author

nope, I am running OpenJDK 7. I enabled invokedynamic only on a minimal beckmark topology so yes your mileage may vary. I'd say to try it out and if it break, remove it. The biggest gain seems to be with -Djruby.ji.objectProxyCache=false anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment