Skip to content
Browse files

Give JRuby 2GB

  • Loading branch information...
1 parent 8c68baf commit 4d5abc1226364fe625e031efd1b4f82fb1723bb5 @gabebw committed Jan 29, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 zsh/jruby.zsh
View
10 zsh/jruby.zsh
@@ -1,6 +1,10 @@
-# Max memory = 1024MB
-JRUBY_OPTS=-J-Xmx1024m
-# Disable JIT
+# Max memory = 2048m
+JRUBY_OPTS=-J-Xmx2048m
+
+# Avoid OutOfMemoryError
+JRUBY_OPTS="$JRUBY_OPTS -J-XX:+CMSClassUnloadingEnabled"
+
+# Disable JIT for faster startup
JRUBY_OPTS="$JRUBY_OPTS -X-C"
export JRUBY_OPTS

0 comments on commit 4d5abc1

Please sign in to comment.
Something went wrong with that request. Please try again.