Anyone have experience with Prisma and memory (RAM...
# orm-help
a
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.
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
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
(I have similar apps that are using Knex/ObjectionJS instead of Prisma and have much smaller memory footprints, also on Heroku)
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
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
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.