-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse Server memory usage #2482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does this happen on version 2.2.17, which is the latest as of this issue's creation? |
Yes |
Also seeing huge memory spikes. |
this could be a problem with node itself because of a bug in V8 Engine, I was using v4.4.2, now I upgraded to v4.5.0 and will come back later with results source: https://nodejs.org/en/blog/vulnerability/june-2016-security-releases/ |
After running for a week I can say it was NodeJS issue because of the old V8 CG bug in node < 4.5 But the top example still causing a memory leak,
I still not sure what cause this leak, but I disable all our cloud code to make sure that it is not because of our code ... A work around was to force CG to run when the leak happen so I put something like this
|
A workaround is nice but a fix is better. Do you want to tackle that issue? |
@hramos @flovilmart I think the issue turns out to be related to Cache somehow, after switching to Redis Cache, this become ok, but I'm still testing .... |
Alirght :) flushing the cash would be nice indeed, or using a LRU cache or with timeout would be nice too. |
redis fixed this issue |
Env:
Parse Server 2.2.16
Parse SDK 1.9.0
AWS
Problem
Consider this code run on the Client
in this example the moment the result is returned to the client, the memory at the client side hike to 800MB, but when the line
books = []
execute the memory usage back to normal around 70MB.The situation in Parse Server (server side) : the moment I request the result, the memory usage hikes also to 1GB in this example but the difference is that it never goes back to normal till I have to restart the node.
Is there any workaround to fix such issue?
The text was updated successfully, but these errors were encountered: