qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Java heap space error #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
Im rying to compile with medium/heavy embeded graphics...i got this error..

What is the expected output? What do you see instead?
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Arrays.java:3209)
        at java.lang.String.<init>(String.java:216)
        at java.lang.StringBuffer.toString(StringBuffer.java:585)
        at flex2.compiler.SourcePathBase.findFile(SourcePath.java:404)
        at flex2.compiler.SourcePathBase.findFile(SourcePath.java:386)
        at flex2.compiler.SourcePath.findFile(SourcePath.java:112)
        at flex2.compiler.SourcePathBase.findSource(SourcePath.java:319)
        at flex2.compiler.SourcePathBase.findSource(SourcePath.java:305)
        at flex2.compiler.API.findDefinition(API.java:2666)
        at flex2.compiler.API.resolveMultiName(API.java:3341)
        at flex2.compiler.API.resolveExpression(API.java:3184)
        at flex2.compiler.API.batch2(API.java:397)
        at flex2.compiler.API.batch(API.java:1108)
        at flex2.compiler.API.compile(API.java:1281)
        at flex2.tools.oem.Application.compile(Application.java:1028)
        at flex2.tools.oem.Application.recompile(Application.java:980)
        at flex2.tools.oem.Application.compile(Application.java:636)
        at flex2.tools.oem.Application.build(Application.java:413)
        at
info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo.build(AbstractFlexComp
ilerMojo.java:104
7)
        at
info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo.run(AbstractFlexCompil
erMojo.java:526)
        at
info.rvin.mojo.flexmojo.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:138)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:55
8)

What version of the product are you using? On what operating system?
 - windows xp
 - java 1.6
 - flex-compiler-mojo v.1.0-beta7 

How can increase the flex-compiler heap size?

Thanks a lot.
Cheers.

Original issue reported on code.google.com by eman.nollase@gmail.com on 2 Jan 2009 at 5:11

GoogleCodeExporter commented 9 years ago
You need to set the environment variable MAVEN_OPTS to a larger Java heap size, 
something like this:

MAVEN_OPTS=-Xmx512m

You can replace 512 with whatever is an appropriate size for your app. Usually 
a number between 512 and 1024 
will work.

Original comment by RedB...@gmail.com on 2 Jan 2009 at 3:41

GoogleCodeExporter commented 9 years ago
I added an FAQ for this on the wiki

Original comment by RedB...@gmail.com on 2 Jan 2009 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by velo...@gmail.com on 4 Jan 2009 at 3:31