Aspose PDF memory leak issue
aspose, aspose.words, pdf
Solution
just stumbled over this post while looking for a solution to a memory leak problem of my own, although this one is found within their Slides library, used for interacting with Powerpoint files. Not sure what language you're using, but this was eventually how we resolved it using .NET.
After little help from the Aspose team, we finally found that the easiest way to handle this was using a seperate AppDomain for the offending code. This has a slight performance impact, but it's only a few seconds at most so we deemed this to be acceptable. This means that after we're done, we can just call AppDomain.Unload(variable) and it will close everything down and purge the memory and this solved all the issues, we saw the memory leaking and then after the unloading occured, we saw everything released. Hope this helps!
Problem
We are using Aspose PDF and are facing the following issues which are sort of show stopper: Aspose PDF is not releasing memory. we have set object to null but they do not release memory. Result - in my web service after 20-30 calls, server memory is 100% used, and they start creating timeouts. -- we are trying to resolve with aspose support team - but no concrete reply since last 2 weeks. When we convert PDF to txt or HTML - this adds lot of special characters which are not recognized by our scripts. Your help is much appreciated