-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Finalizable objects require multiple garbage collection to clean up and may cause performance issues #378
Comments
Hiya Could you fork the repo and submit a PR to branch release/5.7, please? I'll check the diff, and then we can discuss what is happening. Thanks! |
Merged
Released in 5.7 |
mrpmorris
added a commit
that referenced
this issue
May 18, 2023
* Fix memory leak when using ActionSubscriber or SubscribeToAction (Fixes #378) (#380) Fix memory leak when using ActionSubscriber or SubscribeToAction (Fixes #378) * fix minor typo in docs (#398) typo found in State, Actions, and Reducers * Fixe typo * Argument order fix (#416) Fixed order of arguments in `ReduceFetchDataResultAction()` --------- Co-authored-by: Adam Hewitt <[email protected]> Co-authored-by: Steven T. Cramer <[email protected]> Co-authored-by: Phil Watson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a production version of Blazor Server running on Azure, that extensively uses Fluxor. We were investigating a memory leak and have found that the application is holding on to Flxuor Subscriptions preventing the subscription from being removed through the GC.
Screenshot shows 15K Fluxor.DisposableCallbacks in the "Finalizable objects require multiple garbage collection to clean up and may cause performance issues" memory analysis report on Azure after 15 hours of up time and a maximum of 40 users.
We did some digging and found that if we tweaked the UnsubscribeFromAllActions in ActionSubscriber.cs class to include:
The Fluxor.DisposableCallbacks dropped to around 700
Complete Class:
ActionSubscriber.txt
Would you consider adding this to your codebase?
The text was updated successfully, but these errors were encountered: