JRuby 1.7.0 will not install bundler given plenty of memory

天涯浪子 提交于 2019-12-10 22:46:22

问题


I installed jruby with

rvm install jruby-1.7.0

and it ran out of memory when it tried to create the gemsets so I started by trying to install bundler with the new version and this is what I get

~>gem install bundler
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

So I moved up the memory and I still got nothing with a huge chunk of memory

~>JRUBY_OPTS=-J-Xss1024m gem install bundler
Error: Your application used more stack memory than the safety cap of 1024M.
Specify -J-Xss####k to increase it (#### = cap size in KB).
Specify -w for full StackOverflowError stack trace

How the hell can that not be enough I run applications on less than that


回答1:


rvm get 1.15.11
rvm reinstall jruby-head

This appears to be an rvm issue: http://jira.codehaus.org/browse/JRUBY-6948 AND https://github.com/jruby/jruby/issues/331#issuecomment-9120273



来源:https://stackoverflow.com/questions/13038820/jruby-1-7-0-will-not-install-bundler-given-plenty-of-memory

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