Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Dany Rouss
Posts: 2
  • Mark post as helpful
  • send pies
  • 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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic