PDA

View Full Version : Workbench problem


garmani
04-14-2008, 09:05 PM
Hi Guys!

I am new to flex, i worked on it for a while and executed some examples. But suddenly i have started getting out of memory exceptions. I had 1 GB Ram, I upgraded the memory to 3 GB hoping that this would fix my problem. Still I am not able to figure out a solution for this. Here is what I am getting when I try to run an application/file using flex builder 2.

-------------------------------------------------------------------------

An out of memory error has occured. You can prevent these errors in the future by increasing your heap size before you strart the workbench using the -vmargs -Xmx command line option.
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without warning.
See the .log file more details.

Do you want to exit the workbench?

-------------------------------------------------------------------------

Can anyone shed some light on this issue please...

kahuja
04-15-2008, 05:09 AM
You need to optimize your eclipse settings to fix that problem. In your eclipse/Flex builder installation, you will find the eclipse.ini which has the following settings:


-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Dosgi.requiredJavaVersion=1.5
-Dorg.eclipse.swt.internal.carbon.smallFonts




Change the following entries:
[Code]
-Xmx512m
-XX:MaxPermSize=1024m
[Code]

Make sure you backup the existing file.

garmani
04-15-2008, 09:18 PM
You need to optimize your eclipse settings to fix that problem. In your eclipse/Flex builder installation, you will find the eclipse.ini which has the following settings:


-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Dosgi.requiredJavaVersion=1.5
-Dorg.eclipse.swt.internal.carbon.smallFonts




Change the following entries:
[Code]
-Xmx512m
-XX:MaxPermSize=1024m
[Code]

Make sure you backup the existing file.

Hey thanks man,

it fixed my problem, however i didnt use the last line
-XX:MasPermSize=1024m

if add this to the file it is causing problems to JVM and flex is crashing immediately.

kahuja
04-15-2008, 09:21 PM
What did you change?

-XX:MaxPermSize=1024m If you used this line as is, then there is a typo.

garmani
04-16-2008, 03:35 PM
What did you change?

If you used this line as is, then there is a typo.

oh my bad i didnt use the one i typed before i.e.
-XX:MasPermSize=1024m, I used this -XX:MaxPermSize=1024m