• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

I have a program in which i read data from a .txt file and converted to an xml file, than use Swing to display the object.
but i'm getting a "java.lang.OutOfMemoryError: Java heap space" error, i used the -Xms256m -Xmx1024m in the parameters the program worked.
Is there any way i can use a cache like Ehcache or another framework, to convert the file to .xml on a cache memory instead of the system memory and not use the memory params???!!!
Can we read an object directly into the cash memory without passing by the system memory and then put it in the cash?

Many thanks,
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic