// package jp.nminoru.benchmarks; /* * Copyright (c) 2004 NAKAMURA Minoru. All rights reserved. */ // This program is ran under -Xmx64m -Xms64m options. public class GcTest5 { static int loop = 1; static Runtime runtime = Runtime.getRuntime(); public static void main(String[] args) { System.gc(); System.out.println("[Start] the heap size: " + Long.toString(runtime.totalMemory() - runtime.freeMemory()) ); for(int l=0 ; l