[Solved] java.lang.OutOfMemoryError: Java heap space [duplicate]


Yes it is. The heap is being over-allocated. The only way to solve other then increasing the heap space is to see what is using all the heap space and then trying to make sure objects can be collected that stay around longer then they are needed. If it is a file or something that can’t be collected that is making you run out of heap space, you should re-engineer your program if the file sizes aren’t constant and keep changing. If they are constant just increase the heap space above the file size.

solved java.lang.OutOfMemoryError: Java heap space [duplicate]