Java Heap Memory error

后端 未结 6 1193
遇见更好的自我
遇见更好的自我 2021-01-06 05:40

I am getting this error:

Exception in thread \"main\" java.lang.OutOfMemoryError: Java heap space
    at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1585         


        
6条回答
  •  情话喂你
    2021-01-06 06:25

    Try splitting your data into a number of result sets. Think about what you want to do with the data once you got it back from the database. The result set is too large to fit in heap space.

提交回复
热议问题