This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Heap memory getting exhaust  RSS feed

 
chandrap prakash
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

In my application i need to uplaod a 3gb of file into db through hibernate.

The flow of my application is read the file character by character and put into a collection object ,this collection object i am saving to DB through hibernate.

The collection size is more than 1 lac of records.

So please look into that and tell me how i can read the file,so this problem can be resolved.

Regards,

Chandra Prakash
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a different problem than your other post?
It's unlikely you will be able to load 3Gb of data into memory (the maximum process size is limited by the OS). You will probably have to process your records a few (hundred, thousand) at a time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!