Archive for September, 2009
Ant Build scripts - java.lang.OutOfMemoryError 6 comments
I seem to find getting a ‘java.lang.OutOfMemoryError’ a fairly common occurance when using ANT to build my flash projects ;( There’s not much docmentations out there and none of the solutions I found on the web fixed the issue for me ;( the code example below did…
<!– IMPORTANT added folk=’true’ to help avoid java.lang.OutOfMemoryError –>
<mxmlc file=”${module.class}”
output=”${module.target}”
keep-generated-actionscript=”${module.generateActionscript}”
debug=”${module.debug}”
actionscript-file-encoding=”UTF-8″
optimize=”true”
fork=”true”
compiler.show-binding-warnings=”false” incremental=”false” strict=”true” headless-server=”${flex.compile.headlessServer}”>
<!– IMPORTANT we need to give process more memory to avoid java.lang.OutOfMemoryError –>
<jvmarg line=”-Xms512m -Xmx700m -XX:MaxPermSize=700m -XX:PermSize=512m” />
Twitter no comments
Seeing as I never seem to find the time to write decent blog posts at the moment anyone who’s interested can follow me on twitter http://twitter.com/paddy_keane