4 comments
Comment actions Permalink

Hi Alexander

If you're using Ant then it can be modified in Java Parameters of Ant build runner.
In other case please post a build log.

Michael

0
Comment actions Permalink

Hi, Michael!

i use "IntelliJ IDEA Project" build. JVM command line parameters set to huge Xmx 1024m. Exception is:
{quote}

[15:17:24]: [javac] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
[15:17:24]: [javac] at java.util.Arrays.copyOf(Arrays.java:2882)
[15:17:24]: [javac] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
[15:17:24]: [javac] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
[15:17:24]: [javac] at java.lang.StringBuilder.append(StringBuilder.java:119)
[15:17:24]: [javac] at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(DownloadManager.java:928)
[15:17:24]: [javac] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:293)
[15:17:24]: [javac] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[15:17:24]: [javac] at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2383)
[15:17:24]: [javac] at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1406)
[15:17:24]: [javac] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1365)
[15:17:24]: [javac] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1292)
[15:17:24]: [javac] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1292)
[15:17:24]: [javac] at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1234)
[15:17:24]: [javac] at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
[15:17:24]: [javac] at com.sun.tools.javac.util.Messages.add(Messages.java:66)
[15:17:24]: [javac] at com.sun.tools.javac.util.Messages.<init>(Messages.java:52)
[15:17:24]: [javac] at com.sun.tools.javac.main.Main.getLocalizedString(Main.java:447)
[15:17:24]: [javac] at com.sun.tools.javac.main.Main.resourceMessage(Main.java:421)
[15:17:24]: [javac] at com.sun.tools.javac.main.Main.compile(Main.java:364)
[15:17:24]: [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279)
[15:17:24]: [javac] at com.sun.tools.javac.main.Main.compile(Main.java:270)
[15:17:24]: [javac] at com.sun.tools.javac.Main.compile(Main.java:69)
[15:17:24]: [javac] at com.sun.tools.javac.Main.main(Main.java:54)
[15:17:25]: [javac] Compile failed; see the compiler error output for details.
[15:17:25]: : Compile failed; see the compiler error output for details.
[15:17:25]: BUILD FAILED
[15:17:25]: Total time: 9 minutes 56,36 seconds
[15:17:25]: Process exited with code -13
[15:17:25]: [Out of memory: Java heap space] {build.status.text}
[15:17:25]: [Out of memory: Java heap space] {build.status.text}
[15:17:25]: Publishing internal artifacts (4s)
[15:17:29]: [Publishing internal artifacts] Sending build.finish.properties file
[15:17:29]: Build finished

{quote}

Thanks in advance!

0
Comment actions Permalink

What heap size is set for the compiler in the IntelliJ IDEA (Settings -> Compiler -> Java Compiler -> Maximum heap size)  ?
IntelliJ IDEA project runner understands these settings if they are checked into the version control (file .idea/compiler.xml or ipr file).

0
Comment actions Permalink

Hi, Pavel.

Commiting compiler.xml with increased heap really works. Thanks for your help.

Best regards, Alex

0

Please sign in to leave a comment.