{"id":208,"date":"2012-11-05T23:09:46","date_gmt":"2012-11-05T23:09:46","guid":{"rendered":"http:\/\/www.gnial.com.br\/gnialhelp\/?p=208"},"modified":"2021-11-21T16:12:48","modified_gmt":"2021-11-21T16:12:48","slug":"flex-java-heap-space-aviso-flash-builder","status":"publish","type":"post","link":"http:\/\/www.gnial.com.br\/gnialhelp\/flex-java-heap-space-aviso-flash-builder\/","title":{"rendered":"Flex &#8211; Java heap space &#8211; Aviso Flash Builder"},"content":{"rendered":"<p><strong>[mxmlc] Error: Java heap space<\/strong><br \/>\nBUILD FAILED!<\/p>\n<p>Problema resolvido! Simple solution!<\/p>\n<p><!--more--><\/p>\n<h2>Windows:<\/h2>\n<p>In Flash Builder<br \/>\n(1) window &gt; preferences &gt; Java &gt; Installed JRE\u2019s &gt; [The checked option] &gt; Edit &gt;<br \/>\n(2) Adicionar no campo chamado \u201cDefault VM Arguments\u201d o seguinte valor:<br \/>\n(3) -Xms512m -Xmx1024m<\/p>\n<p>ou<\/p>\n<p>-vmargs -Xms512m -Xmx1024m -XX:MaxPermSize=1024m -XX:PermSize=128m<\/p>\n<h2>Mac:<\/h2>\n<p>In Flash Builder<br \/>\n(1) Select RUN &gt; EXTERNAL TOOLS &gt; EXTERNAL TOOLS CONFIGURATIONS.<br \/>\n(2) Navigate to the JRE Tab.<br \/>\n(3) Enter &#8216;-Xms512m&#8217; ou &#8216;-Xmx1024m&#8217; in the VM arguments field ( without the quotes\/sem as aspas ).<br \/>\n<em>(Xmx denotes maximum size of Heap in Java, 640 is the size and m is for mega)<\/em><br \/>\n(4) Select APPLY, then RUN.<\/p>\n<p>&nbsp;<\/p>\n<h1>NOT WORK? N\u00c3O FUNCIONOU?<\/h1>\n<p>&nbsp;<\/p>\n<h2>Windows:<\/h2>\n<p>1. Open the following files:<br \/>\na) \/install_dir\/sdks\/3.5.0\/bin\/jvm.config<br \/>\nb) \/install_dir\/sdks\/4.0.0\/bin\/jvm.config<\/p>\n<p>2. Locate the following line found under # Arguments to VM:<br \/>\njava.args=-Xmx384m -Dsun.io.useCanonCaches=<span style=\"color: #c20cb9; font-weight: bold;\">false<\/span><\/p>\n<p>3. Increase the memory size to a larger value like the following example:<br \/>\njava.args=-Xmx512m -Dsun.io.useCanonCaches=<span style=\"color: #c20cb9; font-weight: bold;\">false<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>Mac:<\/h2>\n<p>On a Mac, you can find that by going to your Applications folder then:<\/p>\n<p>1. Right click on Adobe Flash Builder 4.app or Eclipse.app, Show Package Contents<br \/>\n2. Open Contents &gt; MacOS &gt; Adobe Flash Builder 4.ini<\/p>\n<p>Once you have that file open you want to look for the line that starts with -Xmx and boost that<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>&nbsp;<\/p>\n<p>Font:<br \/>\nwin http:\/\/technophi.com\/2010\/08\/12\/flash-builder-4-java-heap-space-issues\/<br \/>\nmac http:\/\/www.codingcolor.com\/as3\/flash-builder-4-5-mxmlc-error-java-heap-space<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[mxmlc] Error: Java heap space BUILD FAILED! Problema resolvido! Simple solution!<\/p>\n","protected":false},"author":1,"featured_media":652,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","has-thumbnail"],"_links":{"self":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":5,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":479,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/208\/revisions\/479"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/media\/652"}],"wp:attachment":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}