Question: Jruby on Rails: assets precompile Java::JavaLang::OutOfMemoryError: GC overhead limit exceeded

Question

Jruby on Rails: assets precompile Java::JavaLang::OutOfMemoryError: GC overhead limit exceeded

Answers 0
Added at 2016-11-06 13:11
Tags
Question

I am on jruby on rails technology. i am trying to precompile my assets but getting below error.

   Sass 3.5 will no longer support Ruby 1.9.3.
    Please upgrade to Ruby 2.0.0 or greater as soon as possible. 
    rake aborted!
    Java::JavaLang::OutOfMemoryError: GC overhead limit exceeded
    org.mozilla.javascript.ScriptableObject.createSlot(org/mozilla/javascript/Script
    ableObject.java:2913)
    org.mozilla.javascript.ScriptableObject.getSlot(org/mozilla/javascript/Scriptabl
    eObject.java:2841)
    org.mozilla.javascript.ScriptableObject.putImpl(org/mozilla/javascript/Scriptabl
    eObject.java:2725)
    org.mozilla.javascript.ScriptableObject.put(org/mozilla/javascript/ScriptableObj
    ect.java:515)
    org.mozilla.javascript.IdScriptableObject.put(org/mozilla/javascript/IdScriptabl
    eObject.java:386)
    org.mozilla.javascript.ScriptableObject.defineProperty(org/mozilla/javascript/Sc
    riptableObject.java:1613)
    org.mozilla.javascript.NativeCall.<init>(org/mozilla/javascript/NativeCall.java:
    65)
    org.mozilla.javascript.ScriptRuntime.createFunctionActivation(org/mozilla/javasc
    ript/ScriptRuntime.java:3374)
    org.mozilla.javascript.Interpreter.initFrame(org/mozilla/javascript/Interpreter.
    java:2753)
    org.mozilla.javascript.Interpreter.interpretLoop(org/mozilla/javascript/Interpre
    ter.java:1404)
    org.mozilla.javascript.Interpreter.interpret(org/mozilla/javascript/Interpreter.
    java:815)
    org.mozilla.javascript.InterpretedFunction.call(org/mozilla/javascript/Interpret
    edFunction.java:109)
    org.mozilla.javascript.ContextFactory.doTopCall(org/mozilla/javascript/ContextFa
    ctory.java:393)
    org.mozilla.javascript.ScriptRuntime.doTopCall(org/mozilla/javascript/ScriptRunt
    ime.java:3280)
    org.mozilla.javascript.InterpretedFunction.call(org/mozilla/javascript/Interpret
    edFunction.java:107)
    Tasks: TOP => assets:precompile
    (See full trace by running task with --trace)

I have set jruby_opts env variable with value "-J-XX:MaxPermSize=2G" and JAVA_OPTS env variable with value "-XX:MaxPermSize=6024m" but still i am getting memeory issue.

What could be the reason for this ?? how i can resolve this issue?

Thanks,

Answers
Source Show
◀ Wstecz