当前位置: 首页 > 工具软件 > Ibator > 使用案例 >

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

祝嘉懿
2023-12-01

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有关呢?还是和数据库有关呢,在线等!

展开

 类似资料: