学习自:http://www.codeceo.com/article/jvm-memory-overflow.html
讲的很清楚
java 内存与内存溢出
原文:http://www.cnblogs.com/newcoder/p/5756240.html