NOGDUS
May 23, 2018, 05:10:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Blogs Help Search Tags Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Solution for java.lang.OutOfMemoryError: Java heap space  (Read 10929 times)
0 Members and 1 Guest are viewing this topic.
Richard Marks
202192397
Administrator
Member
*

Respect: 3425
Offline Offline

Posts: 1027


happy


« on: October 14, 2010, 11:38:05 PM »

FlashDevelop spits out the following error when you try to build your latest creation:

java.lang.OutOfMemoryError: Java heap space

Maybe you have had this problem before, and maybe not.
But I ran across this issue during the development of my current game project which has a ton of assets embedded.
The solution is to open up /path/to/Flex SDK/bin/jvm.config in a text editor and find the following:
Code:
java.args=-Xmx384m -Dsun.io.useCanonCaches=false

And change that to something like this (If you have that much RAM of course)

Code:
java.args=-Xmx1024m -Dsun.io.useCanonCaches=false

Restart FlashDevelop and then reload your project and it should build just fine.
Logged

Tags: flex flashdevelop heap error 
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!