Eric Armstrong wrote:
Aha. I see that change has to be made to the
first line of the gem script in <jruby_install>/bin

  #!/usr/bin/env jruby -J-Xmx784M

Yow. But even that change was insufficient. So I tried
the same settings we use for monster javadoc builds:

  #!/usr/bin/env jruby -J-Xms128M -J-Xmx1024M

But that still didn't work. Is a sub-process being fired
off that isn't using those settings?

% which gem
<jruby_install>/bin

% head <jruby_install>/bin/gem
#!/usr/bin/env jruby -J-Xms128M -J-Xmx1024M

 % gem install optiflag
Bulk updating Gem source index for: http://gems.rubyforge.org
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.LinkedList.listIterator(LinkedList.java:667)
        at java.util.AbstractList.listIterator(AbstractList.java:284)
        at 
java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:222)
        at org.jvyamlb.ResolverImpl.descendResolver(ResolverImpl.java:116)
        at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:124)
        at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:163)
        at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
        at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
        at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
        at org.jvyamlb.ComposerImpl.composeDocument(ComposerImpl.java:100)
        at org.jvyamlb.ComposerImpl.getNode(ComposerImpl.java:76)
        at org.jvyamlb.BaseConstructorImpl.getData(BaseConstructorImpl.java:97)
        at org.jruby.RubyYAML.load(RubyYAML.java:221)
        at org.jruby.RubyYAMLInvokerSload1.call(Unknown Source)
        at 
org.jruby.runtime.callback.FastInvocationCallback.execute(FastInvocationCallback.java:49)
        at 
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:81)
        at 
org.jruby.evaluator.EvaluationState.callNode(EvaluationState.java:568)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:207)
        at org.jruby.evaluator.EvaluationState.orNode(EvaluationState.java:1459)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:339)
        at org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:164)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.internalCall(DefaultMethod.java:135)
        at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:79)
        at 
org.jruby.evaluator.EvaluationState.fCallNode(EvaluationState.java:1023)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:253)
        at 
org.jruby.evaluator.EvaluationState.blockNode(EvaluationState.java:531)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:201)
        at org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:164)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.internalCall(DefaultMethod.java:135)
        at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:79)
        at 
org.jruby.evaluator.EvaluationState.fCallNode(EvaluationState.java:1023)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:253)
--

Eric Armstrong, Document Systems Architect, Sun Microsystems
http://blogs.sun.com/coolstuff
http://www.artima.com/weblogs/index.jsp?blogger=cooltools

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to