I have -J-Xms64m -J-Xmx512m -J-XX:PermSize=64m in file jmonkeyplatform.conf.
I created terrain in SceneComposer(image based),using image of 1024pix and PNG extension . When I try to compile I got “java.lang.OutOfMemoryError: Java heap space”. If I create terrain with size 512 there are not such exception of course.
Compiling throws that error??
yes
Increase the memory size. Essentially it has the level/scene loaded in memory, and is compiling your code at the same time and that will definitely eat up memory.
You could also switch to an empty scene while coding.
How can I do it? I increased -J-Xmx to 1024, but the same exception have been thrown, may be I edited wrong file - jmonkeyplatformetcjmonkeyplatform.conf