Hi, we're running a NextJS application on a VPS, and from the looks of it the Next Image has a memory leak of some sort? Whenever loading in images, memory increases, which is expected, but it should reduce after the
minimumCacheTTL
minimumCacheTTL
as far as I understand, but it seems it's infinitely caching images in memory (as well as in the file-system, but that's expected). Memory baseline for our application starts at ~200mb, and build up to 1 GB+ overtime when hundreds of images are loaded in, memory is never released.
I am also confident it's caused by Next/Image since running it with unoptimized images has zero issues and RAM stays at the baseline forever.
I'm wondering if anybody else has run into similar issues, and if there's any known fixes for this?