ibator mysql_ibator读mysql数据库报错java.lang.OutOfMemoryError: Java heap space

mysql中的一个库表,有十万条数据,用ibator操纵数据库,在分页查询的时候,报错,错误信息如下:ERROR-Servlet.service()forservletdefaultthrewexceptionjava.lang.OutOfMemoryErro...

mysql中的一个库表,有十万条数据,用ibator操纵数据库,在分页查询的时候,报错,错误信息如下:

ERROR - Servlet.service() for servlet default threw exception

java.lang.OutOfMemoryError: Java heap space

at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1621)

at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1398)

at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2816)

at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:467)

at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2510)

at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1746)

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2135)

at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)

at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)

at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:995)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(PreparedStatementLogProxy.java:62)

at $Proxy9.execute(Unknown Source)

at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185)

at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)

at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)

at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)

at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)

at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:126)

at org.springframework.orm.ibatis.SqlMapClientTemplate$4.doInSqlMapClient(SqlMapClientTemplate.java:280)

at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:188)

at org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:214)

at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:278)

at com.sinosoftech.dao.gwy.OfficialBackupDAOImpl.selectByExample(OfficialBackupDAOImpl.java:160)

at com.sinosoftech.gwy.service.imp.GwyServiceImp.getOfficialBackup(GwyServiceImp.java:42)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

这和ibator有关呢?还是和数据库有关呢,在线等!

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值