Open Tri125 opened 4 years ago
@Tri125 I can confirm your assumptions. We are experiencing the same issue.
@Tri125 @drewgierach Did you guys ever confirm the memory leak issue?
@SeanLeitzinger
Well I'm pretty confident that there's a leak because of what I described above. It's up to the dev team to analyse our report and see what's going on.
I don't think this repository is maintained anymore. I'm in the process of building out the Html To Image functionality and will probably see if I can duplicate the leak on the PDF side as well.
In our netcore 2.2 MVC project we're using DinkToPdf to generate a bunch of PDF from a cshtml template.
We're registering a SynchronizedConverter as a singleton to inject it into our services:
and our usage looks like that:
We were already using DinkToPdf for individual pdf but when we started to generate hundred of them together like in the example above, we noticed that the memory would go through the roof and it would never be garbage collected. A quick memory snapshot tells me that the count of some objects related to DinkToPdf are increasing.