I have a big XML file that I am parsing using SAX parser. During the processing I create a big HashMap having key and values for parsed JSON.
As per my understanding, in java 8 you dont need to set any Permgen setting while running java application, it creates Strings in Heap but some how I am still getting OutOfMemoryError. Is my understanding right or I am choosing a wrong parser?
Stringliteral pool. Most probably in your SAX handler, you would be creating objects rather than literals. Again, it's all speculation without any details in the question.