aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

Jason Marshall
Greenhorn

Joined: Jul 17, 2006
Posts: 18
Hi Partners,

If I run Roberto Perillo Test case more than say 70 times as shown below.



I get the below error message.. Is this normal, I am doing calls to System.gc() and I know we cannot control this, I have tried to null all variables inside of my functions. Is this happening due to the share number of threads being created? I am working on a Dell Inspiron, XP3, 1GB Memory.

Exception in thread "Thread-264" java.lang.OutOfMemoryError: Java heap space
at suncertify.db.RoomFileAccess.updateRoomList(RoomFileAccess.java:140)
at suncertify.db.RoomFileAccess.deleteRecord(RoomFileAccess.java:461)
at suncertify.db.Data.deleteRecord(Data.java:91)
at suncertify.db.DataClassTest$DeletingRecord1Thread.run(DataClassTest.java:253)
BUILD STOPPED (total time: 1 minute 2 seconds)


Thanks Jason


Look for solutions not problems!
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4925
    
  10

Jason,

If your program throws such an exception, is it always originating in the same method (updateRoomList) or is it just randomly.

Regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError
 
Similar Threads
Dual Program (Applet & Application) : Need to know how to improve in Applet ways only!
OutOfMemoryError while running DataClassTest
Deadlock testing class for B&S 2.2.1
Tests for the Data class/locking mechanism
MultiDimenaional Array sort