问题
I am trying to download gems for jruby-1.7.0.RC2 but i get this error every time I try to push it through.
Error: Your application used more stack memory than the safety cap of 2048K.
Specify -J-Xss####k to increase it (#### = cap size in KB). Specify -w for full StackOverflowError stack trace
回答1:
If you are using RVM to manage your Ruby runtimes, be sure to update it. See https://github.com/jruby/jruby/issues/331.
回答2:
That because Everytime you run
gem install rails
it check for capsize JRUBY_OPTS just try changing that value
export JRUBY_OPTS=-J-Xmx2048m
change 2048 to a higher value (this basically Jruby heap space setting)
and then run gem install rails
Hope this help
btw Here the list of options you can use with http://kenai.com/projects/jruby/pages/PerformanceTuning
来源:https://stackoverflow.com/questions/12877961/every-time-i-tried-to-load-gems-for-jruby-it-gives-me-this-error-this-is-after