wood burning stoves 2.0*
The moose likes JDBC and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

hari vemulapalli
Greenhorn

Joined: Mar 17, 2008
Posts: 18
Hi

I am getting OutOfMemoryEror in my application. i am using Eclipse europa .
the sql query is getting 28000 recods and then it is showing this outOfMemoryError.

I tried to set the heap size like this
java -Xms128m -Xmx1024m.
But after this also same error....
Please help me how can I increase heap size in Eclipse...
Thanks,.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38040
    
  22
Please go through each element and see how much memory each requires; unless you have BLOBs and CLOBs which "eat" memory I would have thought you have enough memory for 28000 of anything.

Please go through your application for infinite loops or even worse infinite recursions, which are much likelier causes of out-of-memory problems.
hari vemulapalli
Greenhorn

Joined: Mar 17, 2008
Posts: 18
Its just showing 28000 records. The actual number of records it should show are 65000 records..!!!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38040
    
  22
What is the average size of each record?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError
 
Similar Threads
Increase JVM heap size of eclipse
Increasing JVM Heap size at run time
how to increase heap size in java
OutOfMemoryError
java.lang.OutOfMemoryError: Java heap space