Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space

807598Jun 22 2006 — edited Jun 22 2006
Hello,

I am getting the following error when i execute the following loop. This program in swing.

while(rs.next())
{
}
where rs is resultset which need to execute 23,489 times. After 10 % , I am getting the following error. I search in google but i did not get the exact solution.. My Operating System is Window XP and Java environment is Jdk 1.4.05. Database ms sql server 2000.
I would be appreciate to you if any one can give some advise to me

Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space


Thanks
Rajnish K

Message was edited by:
rajnishsunjava
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2006
Added on Jun 22 2006
2 comments
212 views