someone using rails with jruby?

Discussion in 'Ruby' started by music, May 27, 2011.

  1. music

    music Guest

    I'm trying to create a war file but I have this error:

    bundle exec warble

    warble aborted!
    Error: Your application used more memory than the safety cap of 500m.
    Specify -J-Xmx####m to increase it (#### = cap size in MB).
    Specify -w for full OutOfMemoryError stack trace

    Then I run

    jruby -J-Xmx900m -S bundle exec warble

    but I have the same problem.
    How can I solve?

    I'm using jruby-1.6.2 and rails 3.0.7.
     
    music, May 27, 2011
    #1
    1. Advertisements

  2. Unfortunately bundle exec spins up a subprocess, so it might not get
    the Xmx flag. Try JAVA_OPTS=-Xmx###M and if you still have a problem
    open a JRuby bug at http://bugs.jruby.org.

    - Charlie
     
    Charles Oliver Nutter, Jun 3, 2011
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.