Anyone have experience with Prisma and memory (RAM) usage creeping up? I'm on Heroku and see memory usage creep up especially as I use Prisma to query for many records. It doesn't seem to have a performance impact, from the testing I've been able to do.
Austin Zentz
03/23/2022, 2:03 PM
Austin Zentz
03/23/2022, 2:04 PM
Here you can see I restarted the server, then over the course of a few hours the memory usage went from 40% or so up to 80% and, despite some spikes, stayed in that zone. I'm not 100% positive this is caused by Prisma but it's my best guess at this point
Austin Zentz
03/23/2022, 2:05 PM
What I can't really tell is if this is just Prisma allocating RAM so it can continue to work quickly -- which will be GC'ed out if needed -- or if i'm looking at a potential memory leak that's going to cause issues in production
Austin Zentz
03/23/2022, 2:05 PM
(I have similar apps that are using Knex/ObjectionJS instead of Prisma and have much smaller memory footprints, also on Heroku)
Austin Zentz
03/23/2022, 2:06 PM
anyways, crossing my fingers that someone may have experienced something similar and can either reassure me or flag that this maybe will be an issue
p
PanMan
03/25/2022, 10:34 AM
We have a similar memory issue, especially on our “jobs” server.. which we have to restart daily. Didn’t suspect prisma so far, but interesting…
👀 1
j
janpio
03/29/2022, 6:13 PM
We are not aware of any concrete problems, so if you can point this to Prisma in any way or even get a (partial) reproduction, please make sure to open an issue in our repo. If there is something wrong, we want to know about it so we can fix it.