Yes, I did try java -Xmx without any luck. And I don't compile it in debug mode.
Maybe I should test it also with Ant to see the difference. On 10/15/07, Adam Duston <[EMAIL PROTECTED]> wrote: > > I use Flex Ant Tasks, and I haven't tried Maven for compiling Flex. But > just a couple of thoughts: have you tried altering the max heap size using > the java -Xmx option? I also wonder if the twice-the-size problem is a > result of it compiling in debug mode. > > > On 10/14/07, Ronen Naor <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Has anyone encountered the following problem using the maven israfil > > plugin: > > > > java.lang.OutOfMemoryError: Java heap space > > at java.util.HashMap.resize(Unknown Source) > > at java.util.HashMap.addEntry(Unknown Source) > > at java.util.HashMap.put(Unknown Source) > > at macromedia.abc.ByteArrayPool.store(BytecodeBuffer.java:381) > > at macromedia.abc.IndexHistory.decodeOnDemand(ConstantPool.java:823) > > at macromedia.abc.IndexHistory.getIndex(ConstantPool.java:553) > > at macromedia.abc.IndexHistory.decodeOnDemand(ConstantPool.java:785) > > at macromedia.abc.IndexHistory.getIndex(ConstantPool.java :553) > > at macromedia.abc.Encoder.OP_callproperty(Encoder.java:2029) > > at macromedia.abc.Decoder$Opcodes.decode (Decoder.java:1389) > > at macromedia.abc.Decoder$MethodBodies.decode(Decoder.java:523) > > at flex2.tools.PostLink.merge(PostLink.java:325) > > at flex2.tools.PostLink.run(PostLink.java:72) > > at flex2.linker.API.link(API.java:42) > > at flex2.tools.Compiler.main(Compiler.java:226) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at net.israfil.mojo.flex2.StreamedParameterExecutableWrapper.main( > > StreamedParameterExecutableWrapper.java:62) > > > > Also the created swf is twice the size of the swf created by Flex > > Builder. > > > > Thanks, > > Ronen. > > > > > > -- > [EMAIL PROTECTED] > > >