Well, first of all, I'd try to find another way of allowing users to view your 
50 .PNG files, without embedding them in your code.  That'll free up a TON of 
memory.  (It's why Hard Drives were invented.  <GRIN>)  Maybe load them into 
memory from a folder, as they're needed, rather than embedding them all?

Through a little experimentation, I've found that you CAN increase the Xms and 
Xmx variables to 1024m, if your -XX:MaxPermSize is 512m or less.  (And 
obviously the -XX:PermSize must be equal to or less than -XX:MaxPermSize.)

Also, each thread you're running will use a stack -- if the stack size is too 
big, that will limit the number of threads you can run.  So maybe the default 
stack size is too large for your particular app?  Try adding an -Xss1204k to 
the .ini file and see if that changes anything...

Best of luck.


--- In [email protected], "James" <garymoorcroft_...@...> wrote:
>
> Ok I've managed to find the file which controls the heap space which Flex 
> Builder allows called the FlexBuilder.ini file in 
> Computer/C/ProgramFiles(86)/Adobe/Flex Builder 3/ but the problem is I can't 
> raise the xms and xmx attributes above 512 as when I try to start Flex I get 
> the message "Unable to load the java virtual machine" and then a window comes 
> up with a message of "JVM terminted. Exit code=1"
> 
> But if I leave both values at 512 it works fine but I get an out of memory 
> error whenever I run a big application I've made. This is why I wanted to 
> increase them to 1024 like I have done with the perm sizes to solve this out 
> of memory error. Does anyone know why this is happening? My system is quite 
> new and has 2gb of RAM. The contents of my flexbuilder.ini file are:-
> 
> -vmargs
> -Xms512m
> -Xmx512m
> -XX:MaxPermSize=1024m
> -XX:PermSize=1024m
> -Djava.net.preferIPv4Stack=true
>


Reply via email to