I also often get this errors (even with 16GB RAM). I think the only way to make your programm take more heap is to intervene in the greenfoot source code. But this will probably cause that your game doesn't work on other computers or other greenfoot programms.
But on the webside I think I never got any OutOfMemoryErrors. So that will not be a problem I think.
Well, too bad you can't change it easily. But can anyone confirm that on the website you don't get an OutOfMemoryErrors? (I want to be really sure, not that I don't trust Gevater_Tod :) )
Ok, thanks davmac. I already scaled a rather large image down so it consumes a lot less memory. (and considering the fact I have 6GB RAM, it really was a large image for a greenfoot scenario)