Memory Management Issues During Watermarking Process with Aspose.PDF with Python

We are experiencing significant memory management issues while using Aspose.PDF with Python during the watermarking process. Specifically, memory usage increases substantially during the process, and a considerable portion of this memory is not released upon completion. This results in persistently high memory consumption, which adversely impacts the application’s performance. Additionally, when memory usage reaches a critical threshold, it causes the pod to restart, leading to further disruptions. This issue necessitates an effective solution to optimize memory usage and ensure the stability of the application.

Environment : MK8s (Kubernetes)
Aspose.pdf : 24.5.0

@RahulKourav01

Would you kindly share sample code snippet with sample document and steps to reproduce the issue? Also, please share some screenshots or logs for the memory consumption report so that we can log an investigation ticket and address it accordingly.