Menu

#7 Large files cause OutOfMemoryError

open
nobody
None
5
2001-04-20
2001-04-20
chris gay
No

Opening large text files (for instance, 9MB) will
result in an OutOfMemoryError. This problem can me
mitigated to some degree by increasing the Java
interpreter's max heap size, but manipulating the heap
size is a slow and unacceptable fix. I had to adjust
the heap size to 128MB to open a 9MB file.

I can open the text file without error in the TextPad
utility, which leads me to believe the solution to
this problem lies in only displaying the portion of
the file the user is currently viewing (and a buffer
above and below the viewed content), and dynamically
managing scrolling the view as well as the content
changes.

Please let me know if you find a solution. Thanks.

Discussion


Log in to post a comment.