Hashtable out of memeory *URGENT
1 posts in topic
Flat View  Flat View

Posted By:   Pary_Alavi
Posted On:   Saturday, August 3, 2002 06:38 AM


I used 4 hashtable on my applcation to hold a instances of my object class that is a data structure for holding my object.

Number of data that might encounter to these hashtable is dynamic.

I get out of memory error when the number of objects become more than 11500 or something like this. What should I do to remove this error from my application.



Re: Hashtable out of memeory *URGENT

Posted By:   Animesh_Srivastava  
Posted On:   Monday, August 5, 2002 11:01 PM

Two ways -

  • If all the 11500 objects are not required at the same time, you could try serializing and persisting them somewhere, file etc.
  • Or alternatively, you could allocate more virtual memory to the JVM.

Generally the first one would suffice because I dont think that there would be applications which would really need so many objects at the same time. But if that is the case, and you cant do without them, then you should go for the second option.

About | Sitemap | Contact