Error: Java heap space

Monkey Targets Forums/Flash/Error: Java heap space

sknightly(Posted 2012) [#1]
When I build my Monkey App (an eBook with lots of fullscreen graphics) I get this error:

Error: Java heap space
TRANS FAILED: TRANS Failed to execute 'mxmlc -static-link-runtime-shared-libraries=true MonkeyGame.as', return code=1

I assume this means that the Java Dev Kit "stuff" (which Flex uses to build the .FLA) has run out of memory. How/where do I increase the ammount of memory allocated to Java?


skid(Posted 2012) [#2]
I googled mxmlc heap space and got here:

http://www.stabbymonkey.org/archives/100

stabbymonkey????


sknightly(Posted 2012) [#3]
Thanks - that worked!


Paul - Taiphoz(Posted 2014) [#4]
I'm getting this at the moment with Flash Debug Build, but the above fix did not help, any other clue or tips on resolving this ? it builds on release mode just not debug.


AdamRedwoods(Posted 2014) [#5]
i suggest cranking it all the way up?
-Xmx2048m


Paul - Taiphoz(Posted 2014) [#6]
I did, it still failed, might try upping it firther and see what happens, why would this happen in debug and not release tho.


Paul - Taiphoz(Posted 2014) [#7]
on closer inspection I had a number of those files, I eventually found the the one that monkey was using and made the change and it works, so if anyone else has this issue be sure to make sure that you check all the files that your search yields, like me you may have more than one in different locations.