Problems: I have a conversion program using pyuno in CentOS, Normally the memory is 600M (2G). Atfter I run the conversion program(Input: 3.4M, including picture watermark), the memory runs up to 1.5G (2G).
Programs:
- Convert pdf to each picture (102pages, and the pictures are saved locally)
- Add each picture to Drawer, then save as a pdf (all the pictures are deleted locally).
- Close the original input pdf (using code: document.close(True))
- I run the server daemonly :
soffice
--headless
--invisible
--nocrashreport
--nodefault
--nologo
--nofirststartwizard
--norestore
-env:UserInstallation=self.user_installation
Questions: How to make the memory back to original level after the convertion, I have explicitly close the input document, and save the output document locally.