Open vincentsarago opened 4 months ago
We decided to see if Valgrind could provide something more useful. @chuckwondo ran Scalene and it was showing that the memory usage is almost entirely outside python itself.
valgrind --tool=memcheck --leak-check=full --suppressions=valgrind-python.supp --log-file=minimal.valgrind.log python memory_mosaic.py
Dear users, I'm trying to debug some possible memory leak issue with rio-tiler (this subject has been brought many time over the rasterio repo and it seems that is there is a leak it might be at users application level, e.g rio-tiler). Before raising a new issue in rasterio I would like to be sure that's it's not in rio-tiler 😅
Where ?
rio_tiler.reader.read
rio_tiler.models.ImageData
rio_tiler.tasks.create_tasks
rio_tiler.mosaic.*
I'm out of ideas/clues of what is going on so if someone wants to help, it will be really appreciated 🙏
python scripts:
memory_mosaic.py
results
The issue was reported by a titiler-pgstac application user, resulting in memory increase like 👇