I'm working on a project involving some large XML files (from 50MB to over 1GB) and it would be nice if I could view them in eclipse (simple text view is fine) without Java running out of heap space. I've tried tweaking the amount of memory available to the jvm in eclipse.ini but haven't had much success. Any ideas?
I am not sure you can open such large files, as stated already in 2005.
You will end up with
!MESSAGE Unable to create editor ID org.eclipse.ui.DefaultTextEditor: Editor could not be initialized.
!STACK 0
java.lang.OutOfMemoryError: Java heap space
every time 'as mentioned in this thread).
I just tested that with the comment.xml of the latest SO dump: 350Mo.
(Stack Overflow Data Dump - Nov 09\Content\so-export-2009-10\comments.xml)
It took me a Xmx
(see my eclipse.ini) set to more than 3Go to be able to:
So it is simply not the right tool (and I tested it with eclipse3.6M3, latestest JDK, on a Windows7 Ultimate and 4GoRAM...).
Couple of notes:
So at this point, a tool like the one I mention in the question Best Free Text Editor Supporting More Than 4G Files?: Large Text File Viewer (even though its site, swiftgear) is down since late 2008, is a valid alternative.
I don't think it's possible, I have also struggled with large XML files and it basically kills Eclipse. Try using some other tool.
I usually use BareTail to view large files. It's not XML-oriented, but can view GBs of files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With