Java heap space error while compiling

I keep getting a “Java Heap Space” error in my atlas files. Do atlas files have a maximum width and height? or is something else the problem?

If you’re targeting mobile you shouldn’t go above 2048x2048. On desktop you can go higher than that, maybe 8k or 16k.