We are evaluating the Aspose Email library for creating PST files in Java. We have a need to create very large PST files, but it appears that the Aspose library (version 126.96.36.199-jdk16) has trouble with these, resulting in the following exception even when creating relatively smaller (400MB) PST files.
We can increase the VM max heap size, but our concern is that no matter how much memory we let the heap consume, we will eventually hit an OutOfMemoryError.
Is it possible to use the Aspose library in such a way that it does not consume so much memory when creating large PST files?
java.lang.OutOfMemoryError: Java heap space