• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Out of Memory error / Heap size problem

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

I have a Java Program which involves fetching of large volume of data from web service. If the volume of data is so high, I encountered out of memory error.
Error looked like

"Processing Dump Event "systhrow", detail "java/lang/OutOfMemoryError"

So I have set the maximum heap size as 256 MB. Then the program is not throwing out of memory error.

I do insert many records in DB2 table one by one. When the heap size was 256 MB, it throws SQLERRMC : mon_heap_sz from DB2 while inserting few records and few records are not getting inserted..

Please tell me some resolution for this problem. This is of high priority and I am not able to figure out the cause or solution.

Thanks in advance,
Madhu
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the resolution would be to change your code so that it doesn't use so much memory.

Of course we can't see any of your code, so that's just a guess. Perhaps you could post a SSCCE (follow the link) which shows the problem in action?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic