java.lang.OutOfMemoryError
Hi everyone..
I am getting an error message like this when i run my code:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at ascii_reader.main(ascii_reader.java:274)
I am using an array of vectors to store information from a file and then retrieving that information.
This error occurs when i try to read files of size > 20 MB.
I tried changing the memory allotment to heap in the eclipse.in file from 256m to 512m..
Still the error persists..
Can anyone help me out with this issue?
Thanks!