Scene Composer Java Heap Space error


I got scene which size is 150MB. I tried to save it but get: Java Heap Space error. I added this into VM argument line in Properties in JME:

[java]-Xmx1024M[/java] but it didn’t helped.

I got 6GB RAM. How I can use as much as possible of it for JME ?

Change the settings file in the SDK application folder to increase the SDK heap:

You should also raise the direct memory size if you do that though, the direct memory should always be larger than the java heap space so the garbage collections happen often enough to clear the direct memory.

Thanks, I already edited jmonkeyengine.conf in etc folder.