We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

High memory usage by com.aspose.words.Border object


We are working with 46 pages docx document of our customer having many tables.
We don’t use anything special except deepClone of table objects.
But in VisualVM a see huge amount of com.aspose.words.Border objects occupied 2GB ram.
Don’t you have some memory leak in 17.2.0 version?

Hi Roman,

Thanks for your inquiry. Please note memory usage in Aspose.Words is completely dependent on document size and document complexity. Usually, Aspose.Words needs 10 times more memory than the original document size to build it’s DOM in the memory and when it comes to rendering a document to fixed page formats (e.g. PDF, image formats), Aspose.Words needs to build two model in the memory – one for document and the other for rendered document. Document.PageCount property also invokes page layout routine which builds the two document models in memory. That is why Aspose.Words utilizes more memory when you render a document than when you simply save a document in flow formats (e.g DOCX).

Please share your simplified Java source code (source code without any compile errors) along with your source document that helps us to reproduce your issue on our end. We will check your code and provide you more information.

Best regards,