Created
July 29, 2013 18:38
-
-
Save colinsurprenant/6106575 to your computer and use it in GitHub Desktop.
RedStorm JRuby performance options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.