Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger


Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(
at suncertify.db.RoomFileAccess.deleteRecord(
at suncertify.db.Data.deleteRecord(
at suncertify.db.DataClassTest$
BUILD STOPPED (total time: 1 minute 2 seconds)

Thanks Jason
Posts: 11604
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Your mind is under my control .... your will is now mine .... read this tiny ad
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic