You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
I'm facing out of memory error on my laptop running OS X Yosemite with 16 gigabyte of RAM.
I've intentded to compile my javascript app (172k lines). I've tried both SIMPLE_OPTIMIZATION and ANDVANCED_OPTIMIZATION.
$ ccjs ./static/ui.jsexe/all.js --compilation_level=ADVANCED_OPTIMIZATIONS > ./static/ui.jsexe/all.min.js
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2245)
at java.util.Arrays.copyOf(Arrays.java:2219)
at java.util.ArrayList.grow(ArrayList.java:213)
at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187)
at java.util.ArrayList.add(ArrayList.java:411)
at com.google.javascript.jscomp.parsing.NewIRFactory.<init>(NewIRFactory.java:241)
at com.google.javascript.jscomp.parsing.NewIRFactory.transformTree(NewIRFactory.java:289)
at com.google.javascript.jscomp.parsing.ParserRunner.parse(ParserRunner.java:106)
at com.google.javascript.jscomp.JsAst.parse(JsAst.java:84)
at com.google.javascript.jscomp.JsAst.getAstRoot(JsAst.java:50)
at com.google.javascript.jscomp.CompilerInput.getAstRoot(CompilerInput.java:118)
at com.google.javascript.jscomp.Compiler.hoistNoCompileFiles(Compiler.java:1500)
at com.google.javascript.jscomp.Compiler.parseInputs(Compiler.java:1404)
at com.google.javascript.jscomp.Compiler.parse(Compiler.java:788)
at com.google.javascript.jscomp.Compiler.compileInternal(Compiler.java:743)
at com.google.javascript.jscomp.Compiler.access$000(Compiler.java:93)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:655)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:652)
at com.google.javascript.jscomp.Compiler$4.call(Compiler.java:699)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
I'm facing out of memory error on my laptop running OS X Yosemite with 16 gigabyte of RAM.
I've intentded to compile my javascript app (172k lines). I've tried both
SIMPLE_OPTIMIZATIONandANDVANCED_OPTIMIZATION.My question on StackOverflow
Output listing: