Every time I tried to load gems for Jruby it gives me this error. This is after entering “gem install rails”. Help please?

非 Y 不嫁゛ 提交于 2019-12-11 11:40:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!