!7 // Run with: java -Xms512m -Xmx2g -XX:+UseG1GC -jar x30.jar 1026571 // (using http://botcompany.de:8081/x30.jar) static byte[] bla; p { bla = new byte[512*1024*1024]; repeat with sleep 1 { System.gc(); printWithTime("Performed GC. " + renderHeapSizeWithTotal()); bla = null; } }