-
Notifications
You must be signed in to change notification settings - Fork 12
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
SharedObjectPool clearUnusedObjects is making my app to freeze more than 6 seconds! #6
Comments
Sorry to hear about those problems — and thanks for the report! Wow, that's really an amazingly long time ... may I ask what you've been doing that there are so many objects to be collected? (Flox stores shared objects for each request it makes to the server, as well as for all entities, to be able to cache them if the server is not reachable.) After all, if there was no SharedObjectPool, those objects would be released just as well (but probably multiple times, so it would take even longer); and if we don't clean up, memory consumption might just go up and up and you'd run out of memory at some point. |
What I also don't understand is that after 6.5 seconds of garbage collection, the memory usage does not change at all! That's extremely strange ... |
I do nothing special. |
No, you cannot disable that, and it wouldn't be advisable, because you'd lose all offline functionality, which would make your development efforts much harder. Anyway, I was a little imprecise before: not all requests are stored as shared objects, only those that are queued (e.g. "entity.saveQueued()"). May I ask why you are so sure that it's the SharedObjectPool that causes the garbage collection? And how often have you noticed this huge delay — is it easily reproducible? You're the first to have reported this, so there must be something special in your case. Such a huge pause wouldn't be easy to overlook, I'm sure this would have been reported if more people had experienced that problem in the past. |
"May I ask why you are so sure that it's the SharedObjectPool that causes the garbage collection?" I'll investigate more tomorrow. And write more details about this issue. |
Thanks! What would be especially interesting is a trace out name and size of all SharedObjects at the moment they are deleted.
There's no specific manual page about that, but I'll give you an overview:
I hope that helps! :-) |
..it calls GC and killing everything for 6.5 seconds!
Please fix this or at least make SharedObjectPool class public to avoid auto clean up.
Here is a scout log:
https://dl.dropboxusercontent.com/u/13321619/space-balls.flm
45th second
The text was updated successfully, but these errors were encountered: