Thanks for your inquiry. We had found that temp files are created by AWT in the method: java.awt.Font#createFont(int, java.io.InputStream). In the version 11.2.0 we added clearing for aspose.pdf temp files in com.aspose.pdf.MemoryCleaner class.
After completing operations with Aspose.Pdf object you can close object with close() or dispose() methods and finally use com.aspose.pdf.MemoryCleaner.clearAllTempFiles() method, It clears Aspose related temporary files.
Please feel free to contact us for any further assistance.
We are experiencing a large quantity of temporary files caused by PDF to HTML conversions which if not cleared completely cause critical disk space issues on the servers. I tested the MemoryCleaner.clearAllTempFiles() method on a local machine using our load tester which is multi-threaded. I found that disk access was 5MB/sec; on one occasion the thread never finished and many of the threads ran out of memory.
I’m not convinced that this is thread-safe nor that performance will not be negatively impacted (PDF to HTML already puts double or treble the load on CPU and resources than any other conversion). Operations are having to remove the Apose temporary files on a regular basis - this is less than ideal.
Will you be fixing this in a future release? Our current version of Aspose-PDF is 11.3.0.
Thanks for your feedback. We will appreciate it if you please share your sample code for PDF to HTML conversion and sample temporary files as well. Please also share your environment details, we will further look into the issue and will provide you information accordingly.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.