Memory Leak issue with Aspose PDF library + .Net Core

Dear Support team,

We’ve been encountering memory leak issues with the Aspose PDF library lately, which have resulted in occasional application failures. Our efforts to pinpoint the root cause have included various diagnostic approaches, including load testing the function responsible for generating PDF files. Through this testing, we’ve confirmed that memory leaks are indeed occurring within the PDF library.

Despite our efforts, we’re unsure how to effectively resolve this issue and would greatly appreciate your support and guidance moving forward. Attached are supporting screenshots for your reference, and please don’t hesitate to let us know if you require further evidence from our end. It’s worth noting that even after the process is completed, the system fails to release memory over an extended period
Aspose_MemoryLeak1.png (351.0 KB)

Aspose_MemoryLeak2.png (296.4 KB)

Aspose_MemoryLeak3.png (361.5 KB)

Aspose_MemoryLeak4.png (413.4 KB)

Aspose_MemoryLeak5.png (335.9 KB)

@rajsingh008
Are you using library version 22.7?
Have you checked how the library version 24.3 works?

Dear sergei,

Thank you for your swift reply. We’re currently utilizing Aspose version 22.7.0. We’re can upgrade the library to version 24.3 based on your recommendation and will inform you of any lingering issues after the upgrade.

Additionally, it would be beneficial if you could clarify whether there are any inherent memory leak issues with the PDF library (22.7.0) and if upgrading to version 24.3 is expected to address them. This information would greatly assist us in making informed decisions regarding the upgrade

@rajsingh008
I recommend you update the library version to 24.3 and try with it. During this time (since 22.7) many edits were made, including those related to memory leaks.
In addition, if the problem is localized, reproduced and the development team is tasked with fixing it, the fix will only be in the new version (the team will not make a fix specifically for version 22.7).
If using the latest version involves licensing restrictions, you can try requesting a temporary license (Temporary License - Purchase - aspose.com).

1 Like