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?