Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

iBatis java.lang.OutOfMemoryError: Java heap space  RSS feed

 
Zahro Alfelpha
Ranch Hand
Posts: 67
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application that uses Struts and iBatis. I am running the application inside of a tomcat server within Eclipse. Whenever I run a `SELECT` query that returns many rows, I get a `java.lang.OutOfMemoryError`. If I limit the amount of rows returned, then it doesn't happen. I have searched on this site for similar issues, and most of the answers talk about increasing the java heap size which I have done in the `eclipse.INI` file by setting it to 2048 via `-Xmx2048m`. I have also seen some people suggest changing the way in which jdbc handles the result set, but I have been unable to find how to do that using iBatis. Here is what my database settings look like




Full Stack Trace
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!