配置-XX:+HeapDumpOnOutOfMemoryError 对于OOM错误自动输出dump文件 配置-XX:+HeapDumpOnOutOfMemoryError 对于OOM错误自动输出dump文件 学习了:http://blog.csdn.net/stevendbaguo/article/details/51366181