I'd say the problem is that you're even dealing with a 2Gb XML file to begin with. XML is designed mostly as a method to exchange data between programs. What it looks like you're doing here is using ...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.ArrayList.ensureCapacity(ArrayList.java:169) at java.util.ArrayList.add(ArrayList ...
Community driven content discussing all aspects of software development from DevOps to design patterns. There aren’t any magical tools that will fix an ...