I am loading a big text file into memory (filling a class with a table to hold all the data). Text files range from several MB to 1 GB. However when loading a text file around 100 MB my java app running on windows 7 x64 basically just stops in the middle of reading the text file at about 40%. I am checking for free memory as I load each line.
The last output from println before the code stops reading the text file is
Total Memory: 688128 Free Memory: 86032 Used Memory: 602095
In task manager java.exe is consuming about 838 MB of Ram.
Anyway I can page memory to/from disk or increase the max memory? I will be running the application on multiple systems.