N-API feature creates memory leak #7092
Labels
bug/0-unknown
Bug is new, does not have information for reproduction or reproduction could not be confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: node-api
formerly `nApi`
Milestone
Bug description
Using N-API preview feature creates a memory leak with Prisma 2.22.1
Container which usually takes about 200MB after two-three days rises to 800MB (not heavy load server)
Actually two containers as it's load balanced over two containers in order to utilize two CPU's.
I noticed by getting notifications from netdata about low free memory
Additional info:
I actually had the same issue a month ago while using earlier Prisma (also reported on Slack).
I have since then disabled N-API and had no memory issues to this day.
In the meantime a fix for the issue was made here prisma/prisma-engines#1856
I have now upgraded to 2.22.1 (where the mentioned fix is), re-enabled N-API and unfortunately
noticed the same issue with memory usage rise.
How to reproduce
Expected behavior
Should be no memory rise.
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: