Hi Team,
I am using Aspose.Diagram for Python via .Net with a temporary license. aspose-diagram-python==26.1.
I am calling an API that performs some visio operations and save the file as pdf. The code is running on a ECS container. For each request, memory is getting allocated. But post that processing the memory is not getting released. With every request the memory reservation builds up. This is causing issues when the memory limits are reached.
I have tried garbage collection using gc.collect() and malloc_trim(0). However, the memory leak is still happening.
As can be seen below, Memory usage is still high event though CPU usage has dropped. No requests are being processed at this time:
Also, please find memory stats as below:
sh-4.4$ cat /sys/fs/cgroup/memory/memory.stat
cache 25636864
rss 3410599936
rss_huge 952107008
shmem 0
mapped_file 0
dirty 0
writeback 0
workingset_refault_anon 0
workingset_refault_file 0
swap 0
pgpgin 2313397
pgpgout 1712957
pgfault 2316817
pgmajfault 0
inactive_anon 3432030208
active_anon 36864
inactive_file 17764352
active_file 7872512
unevictable 0
hierarchical_memory_limit 6442450944
hierarchical_memsw_limit 6442450944
total_cache 25636864
total_rss 3410599936
total_rss_huge 952107008
total_shmem 0
total_mapped_file 0
total_dirty 0
total_writeback 0
total_workingset_refault_anon 0
total_workingset_refault_file 0
total_swap 0
total_pgpgin 2313397
total_pgpgout 1712957
total_pgfault 2316817
total_pgmajfault 0
total_inactive_anon 3432030208
total_active_anon 36864
total_inactive_file 17764352
total_active_file 7872512
total_unevictable 0
sh-4.4$ ^C
sh-4.4$
image.png (16.8 KB)
Can you please assist with this?