OOM Exception thrown when trying to parse certain documents

A small percentage of the Word documents we’re are throwing an Out of Memory exception. These documents contain personally identifiable information and as such, I’m not able to attach them to this post. Similarly, anonymising them and then saving them again causes the problem to disappear.


This problem is happening with version 10 and 11.

If an NDA is in place, we would like to send a sample set of files to Aspose in order to resolve the issue. Is this possible?

Is anyone from Aspose able to reply to this?

Hi Alan,


Thanks for your inquiry and sorry for the delayed response.

First of all, we always encourage our customers to use the latest release versions of Aspose.Words as it contains newly introduced features, enhancements and fixes for issues reported earlier. You can give the latest version a try by downloading it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Secondly, most likely ‘OutOfMemoryError’ occurs when the system is running out of memory (less space in RAM is available for process to continue); in this case, you should note that usually Aspose.Words needs few times more memory than document size to build model of the document (DOM) in memory. For example if your document’s size is 1 MB, Aspose.Words needs 10-20 MB of RAM to build its DOM in memory. Multiplier depends on format because some formats are more compact than others. For example DOCX format is more compact than DOC and RTF, and DOC is more compact than RTF.

Moreover, it is safe to attach files in the forum. If you attach your document(s) here, only you and Aspose staff members can download it. Also you can send the file to my e-mail as described here:
http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Once I get your document(s), I will investigate the issue(s) on my side and provide you more information.

Best Regards,