[flexcoders] Re: flashBuilder.ini
--- In flexcoders@yahoogroups.com, "Mike" wrote: > > I am using a 32 bit JDK because as you have guessed FB is not 64 bit capable > at this time. QED You have only 2GB of usable memory. > It would be more helpful to post complete and working ini files that provide > >800M of heap. One person's ini file that works is probably not going to work on your system. It's all dependent on the DLL's that are loaded and where they position themselves in memory (They generally have a preferred location). In your case you have a loaded DLL (or more) that is/are loaded in memory somewhere inside the 2GB that is available. The JVM has determined that there is a contiguous 800MB of memory and limits you to that. Someone could post an ini file that works for him/her but they would have different DLL's loaded so that ini file will not work for you. You can either try to unload the various DLL's you have or find some way to move their preferred memory location.
[flexcoders] Re: flashBuilder.ini
I am using a 32 bit JDK because as you have guessed FB is not 64 bit capable at this time. BTW, I have discovered that command line vmargs do not override settings specified in the ini file, contrary to the docs. In other words, given the ini file I posted earlier, the following does not affect Xmx: "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm "E:\Program Files\Java\jdk1.6.0_20\bin" -Xmx1500m It would be more helpful to post complete and working ini files that provide >800M of heap. "In theory there is no difference between theory and practice. In practice there is." -- Attributed to Jan L. A. van de Snepscheut, Yogi Berra and Albert Einstein. > > FlashBuilder.ini file is: > > > > -nl > > en_US > > -startup > > plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar > > --launcher.library > > plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 > > -vmargs > > -Xms800m > > -Xmx800m > > -XX:MaxPermSize=384m > > -XX:PermSize=128m > > -Djava.net.preferIPv4Stack=true > > Mike
[flexcoders] Re: flashBuilder.ini
First off, are you running 32 bit or 64 bit Java? Not to mention Eclipse (Flash Builder). NB: Flash Builder is built on Eclipse. It looks like it is 32 bit (win32 mentioned in plugins line). This will give a maximum heap size of 2GB which you would not be able to set it to as there would not be any memory left to work with. Also, a DLL may have loaded into the memory area that the JVM wants to use for heap (The JVM needs a contiguous block of memory). Java is intelligent enough to give an error if you set initial(Xms) or maximum(Xmx) heap size too high. Some posts that might help you understand these settings... http://www.eclipsezone.com/eclipse/forums/t104307.html http://wiki.eclipse.org/Eclipse.ini http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html --- In flexcoders@yahoogroups.com, Mike Slinn wrote: > > The source code in my message did not look the same in the daily > digest as it did online. I will try posting once again; the biggest > memory allocation that I can currently specify in FlashBuilder.ini file is: > > -nl > en_US > -startup > plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar > --launcher.library > plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 > -vmargs > -Xms800m > -Xmx800m > -XX:MaxPermSize=384m > -XX:PermSize=128m > -Djava.net.preferIPv4Stack=true > > Also, I have seen a report that running Eclipse from a JDK gives more > memory control than from a JRE. That did not make sense to me, but I > tried it anyway, by changing the shortcut properties to: > "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm > "E:\Program Files\Java\jdk1.6.0_20\bin" > vs. > "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm > "E:\Program Files\Java\jdk1.6.0_20\jre\bin" > > I did not find any difference. > > Mike >
[flexcoders] Re: flashBuilder.ini
The source code in my message did not look the same in the daily digest as it did online. I will try posting once again; the biggest memory allocation that I can currently specify in FlashBuilder.ini file is: -nl en_US -startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -vmargs -Xms800m -Xmx800m -XX:MaxPermSize=384m -XX:PermSize=128m -Djava.net.preferIPv4Stack=true Also, I have seen a report that running Eclipse from a JDK gives more memory control than from a JRE. That did not make sense to me, but I tried it anyway, by changing the shortcut properties to: "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm "E:\Program Files\Java\jdk1.6.0_20\bin" vs. "E:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" -vm "E:\Program Files\Java\jdk1.6.0_20\jre\bin" I did not find any difference. Mike
[flexcoders] Re: flashBuilder.ini
I have the exact same hardware setup as you - 12 GB RAM on an i7 930 is a wonderful thing! Here are my settings: -nlen_US-startupplugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090\ 715.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win3\ 2.x86_1.0.200.v20090519-vmargs-Xms800m-Xmx800m-XX:MaxPermSize=384m-XX:Pe\ rmSize=128m-Djava.net.preferIPv4Stack=true I would like to increase Xmx to a larger value, but get an error when I do so. Can anyone paste a working FlashBuilder.ini file with a larger value? Mike