今日写代码。出现一个OOM问题:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at dao.BaseDao.excuteQuery(BaseDao.java:60)
at dao.MsabnormalChangeaddress4Dao.queryAll(MsabnormalChangeaddress4Dao.java:14)
at test.Test.main(Test.java:24)
-----------------------------------------------------分割线------------------------------------
做业务查询,JDBC,通用JDBC。该表大概有473009行,我是做其中的一条数据查询。结果爆出了OOM, 如何调优?