Options to avoid massive memory usage Aspose.Words for Java

Hi there,
We use Aspose.Words for Java in our app to manipulate metadata properties. As there could be hundreds or thousands documents to be dealt with at the same time, we found a massive memory usage in our app.
I found the following options could potentially help us:
https://docs.aspose.com/cells/java/optimizing-memory-usage-while-working-with-big-files-having-large-datasets/#writing-large-excel-files
https://docs.aspose.com/words/java/specify-load-options/#use-tempfolder-to-avoid-amemory-exception

My question is are there other options as well would help?
Is it possible to process custom xml parts without loading and parsing the entire office document?

Thanks

@vendorobjective There is also SaveOptions.MemoryOptimization, which allows to decrease memory usage upon saving documents.

Unfortunately, there is no way to access custom xml parts without loading whole document into the DOM.

Memory consumed by Aspose.Words depends on the document size and complexity.

1 Like