标签:虚拟机
Java堆OOM(Out-Of-Memory)异常/** * VM Args:-Xms20m -Xmx20m -XX:+HeapDumpOnOutOfMemoryError * @author zzm */ public class HeapOOM { static class OOMObject { } public static void main(String[] args) { List<OOMObject> list = new ArrayList<OOMObject>(); while (true) { list.add(new OOMObject()); } } }
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:虚拟机
原文地址:http://blog.csdn.net/u010708203/article/details/46873925