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

Hi sergei ,

we have created one sample application for Aspose pdf generation with Aspose version 24.3 , still we could see some memory leaks issues. please find the attached screenshots for the same. Herewith i have attached the sample application used for PDF generation. please find the attached sample application for this …

AsposeMemoryLeak_1.png (90.7 KB)

AsposeMemoryLeak_2.png (95.3 KB)

AsposeMemoryLeak_3.png (87.0 KB)

AsposeMemoryLeak_4.png (88.9 KB)

AsposeMemoryLeak_5.png (141.5 KB)

MemoryUsageOnPDFGenerationProcess.png (87.4 KB)

@alanneelan
Thanks for the attached data.
I downloaded the archive you attached, the solution opens in the editor.
Please delete this archive from cloud storage as soon as possible.

@alanneelan
I apologize for the delay - I will look into the issue and write to you on Monday.

@alanneelan
I have reproduced the problem and will create a task for the development team.

@rajsingh008
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-57204

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.