Hi,
We are trying to replace our existing QuickPDF library with Aspose.PDF.
We are evaluating the Aspose.PDF(22.6.0.0) and it looks promising so far with our testing, but just found a major memory leak issue. We have reproduced this issue and attached the sample project here with.AsposePDF_Sample_MemoryIssue.zip (50.9 KB).
Please review.
Please use the below link to download all the pdf files used for merge operation and also you can download the .mp4 video where we have recorded the issue.
https://drive.google.com/drive/folders/1_Ltdq66tTjPcaUxiX0PgZ2eK6Gv9y2Sg?usp=sharing
Please review and provide us a fix/let us know if we are not doing something correctly, as this will be a huge issue and can become showstopper for us to go with Aspose.PDF.
Earlier we were seeing >950mb of memory was not getting released, then we used FreeMemory() functions, after which we saw some improvements, memory leak was reduced to 350mb from 950mb. But still 350mb will be a huge memory issue for us, since in sample we are merging just 500 files, in our production it could go up to 3000 files. So, it will
create huge issue for us.
Note:
- Packages folder is been removed to reduce file size.
Steps to reproduce:
- Please download the “Aspose PDF Memory Issue.mp4” from the link and watch the video to understand the issue.
- Download and copy all the files and folders of “PDF.zip” from the link and place it in your file system.
- Run the project and then map the path to this folder in the textbox shown in the form.
- Then click on the “Generate PDF Book” button.
- Track the memory jump until the merge completes.
If it helps, here is a break down of our workflow to create a pdf book.
- Create a temporary pdf and then merge all the pdf report files into this temporary pdf file.
- Add the page number and logo to this temporary pdf file.
- Copy this temporary pdf file into one more new pdf file.
- Set the OptimizationOptions to reduce the file size.
- Dispose all the objects
Please review and let us know.
Thanks,
Prathap