// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Alloc {
    public static void main(String[] args) {
        Object[] o = new Object[100000000];
        for(int i = 0; i < o.length; i++) {
            o[i] = new Object();
        }
        System.out.println(Runtime.getRuntime().totalMemory());
    }
}
