Hello,
according to that the normal Heap Space for Greenfoot applications is 64mb right?
So i checked that with the following code:
but I am getting a max memoy near 256mb. So have there been any changes or is my way of measurement wrong?
thanks for replies
Edit: I checked again with the following code:
and altough I activated the carbage collector I only have an actual Heap Space size of 14mb... this is very confusing...
public class bla extends World{ private static final Runtime runtime = Runtime.getRuntime (); public bla(){ super(600, 400, 1); System.out.printf( ""+ runtime.maxMemory()); } }
private static final Runtime runtime = Runtime.getRuntime (); public bla(){ super(600, 400, 1); runtime.gc(); System.out.printf( ""+ runtime.freeMemory()); } }