堆异常
内存溢出 求大侠赐教
Exception in thread "AWT-EventQueue-0"
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
at HM_DataBase.DataGained.delStuff(DataGained.java:167)
------解决方案--------------------堆溢出了,检查你的程序是不是用了大量的内存吧。包括对String的反复使用,对大对象的不断创立等等。优化一下程序。
------解决方案--------------------把相应的代码贴出来看看
------解决方案--------------------查的数据太多了。 给限制下,比如只返回2000条这样的
------解决方案--------------------源码贴上来看看,这样不好说。。。