view agent/test/oome/OOME.java @ 249:d5a88a5981b0

Bug 3437: Add support for JDK 9 Version-String Scheme (JEP 223) Reviewed-by: yasuenag https://github.com/HeapStats/heapstats/pull/118
author KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
date Tue, 15 Aug 2017 11:53:26 +0900
parents c0bbab76d4d1
children
line wrap: on
line source

import java.util.*;


public class OOME{
  public static void main(String[] args){
    List<byte[]> list = new ArrayList<byte[]>();

    while(true){
      list.add(new byte[1024*1024]);
    }

  }
}