-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel compilejava.lang.OutOfMemoryErro #1308
Comments
I find the way to fix this problem: |
Thanks, that's awesome! |
Hi everyone!
|
Hello, |
Sorry to leave a comment on a closed issue and bother everyone, but with the commit 09222fa in place, it is now possible to set up an environment variable and insert extra javac options, like this:
|
If anyone is still stuck on this and stumbles upon this thread, here is the quick fix from my Stack Overflow answer here:
|
Hello everybody,i have a problem need your help,I'm very appreciate that you can help me to fix it.
Details:
......
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.util.ArrayUtils.ensureCapacity(ArrayUtils.java:60)
at com.sun.tools.javac.util.SharedNameTable.fromUtf(SharedNameTable.java:130)
at com.sun.tools.javac.util.Names.fromUtf(Names.java:342)
at com.sun.tools.javac.util.ByteBuffer.toName(ByteBuffer.java:159)
at com.sun.tools.javac.jvm.ClassWriter$CWSignatureGenerator.toName(ClassWriter.java:328)
at com.sun.tools.javac.jvm.ClassWriter$CWSignatureGenerator.access$300(ClassWriter.java:273)
at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:343)
at com.sun.tools.javac.jvm.ClassWriter.writeMemberAttrs(ClassWriter.java:624)
at com.sun.tools.javac.jvm.ClassWriter.writeField(ClassWriter.java:1091)
at com.sun.tools.javac.jvm.ClassWriter.writeFields(ClassWriter.java:1591)
at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1691)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1621)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:746)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1572)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1536)
at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:370)
at com.sun.tools.javac.main.Main.compile(Main.java:361)
at com.sun.tools.javac.Main.compile(Main.java:56)
at com.sun.tools.javac.Main.main(Main.java:42)
Compiling Bazel Java code...
There are my environment:
Platform:
Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) i686 GNU/Linux
java version:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Server VM (build 25.91-b14, mixed mode)
java -XshowSettings:vm
VM settings:
Max. Heap Size (Estimated): 437.50M
Ergonomics Machine Class: server
Using VM: Java HotSpot(TM) Server VM
The javac's heap size is 256m in the Java Visual VM.
I had tried every way as I could.
Thanks very much!
The text was updated successfully, but these errors were encountered: