import java.util.ArrayList;
import java.util.List;
/*
* -Xms10m -Xmx10m -XX:+HeapDumpOnOutOfMemoryError
*/
public class HeapOOM {
static class OOMObject{
}
public static void main(String[] args) {
List<OOMObject> list = new ArrayList<HeapOOM.OOMObject>();
while(true) {
list.add(new OOMObject());
}
}
}