Think I found the limit (java heap space)

So the game has grown a bit and is now about 150-200 mb when built.

It have worked fine to work with the engine until now. The Main-collection that contains proxy-collections to 300 levels and also the menu. Now it has come to the point when I can no longer open this collection, instead I get the following error:
"Could not open the editor: Java heap space"
This happens even when I restart the engine and I’ve allready changed the defold.ini file to “xmx2000M”, any higher number then that and the engine won’t start at all. What should I do?

Might as well add that we have trouble with getting the game to run on an Iphone.
Window, Android and also OSX-version works great but the Iphone-version can be installed (which was troublesome in it self) but when you lunch it the iphone tries to load it but fails after a few second…

Ok, that sounds like something we need to look closer at. A couple of things:

  1. Make sure you disable Scene > Show > Collection Proxies. This prevents the editor from loading each and every level when you open a collection containing proxies.

  2. If you already have disabled showing of proxies, there are two workarounds:
    a) Move all the proxies to a separate collection that you never open, then load it dynamically into main with a collectionfactory.
    b) Use a text editor and cut chunks of the proxies out of the collection file (it’s a plain text file). Test your levels maybe 100 at a time. When you’re done testing, paste everything back into the main collection file and build. This way you can work with the file without ever having to open it with all proxies in the editor.

I was able to locate the source of the problem. The problem was big Game Objects.
In the game we have galleries which is basicly 10 different 1140X720 GUI component (one for each gallery) during runtime only on of these is activated at one given time. Allthou it make the gameobject and the collection that hold the gameobject take up allmost 1 000M heap space (which is alot when you only have 2 000 to move around with)

Fotnot:
Find a bug with the “show heap status”, I had to uncheck and check the box every time I started the program to make it show in the editor.