2 Replies Latest reply: Nov 19, 2012 5:40 AM by 972092 RSS

    Increase JVM memory size in build.xml?

    972092
      Hi,
      I want to know if it is possible to increase the JVM memory size in the "build.xml" file of my java fx project itself?If so,how to go about it?
      Thanks a lot.
        • 1. Re: Increase JVM memory size in build.xml?
          ytw
          I think you can achieve that by specifying <fx:jvmarg>.

          For example:
          <fx:deploy width="${applet.width}" 
                         height="${applet.height}"    
                         embedJNLP="true"
                         nativeBundles="all" 
                            outdir="${dist.dir}"  
                         outfile="${application.title}" 
                         verbose="true"> 
                    
               <!--
               Increase JVM memory size. 
               http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIAGFFIF 
               -->
               <fx:platform javafx="2.2+" j2se="7.0">
                    <fx:jvmarg value="-Xms64M"/>
                    <fx:jvmarg value="-Xmx512M"/>
               </fx:platform>
                         
          </fx:deploy>
          Hope that helps!

          Edited by: ytw on Nov 16, 2012 12:30 PM
          • 2. Re: Increase JVM memory size in build.xml?
            972092
            Thanks ytw that helped :)