Skip to content
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

fix discover memory leak #100436

Closed

Conversation

nickofthyme
Copy link
Contributor

Summary

Interim fix for discover memory leaks related to @elastic/charts see elastic/elastic-charts#1148.

The main issue is that every new render creates a unique chart id and creates a new redux store along with many re-reselect selectors.

@nickofthyme nickofthyme added Feature:Discover Discover Application v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.14.0 labels May 22, 2021
@nickofthyme nickofthyme requested review from markov00 and a team May 22, 2021 02:01
@markov00
Copy link
Member

@elasticmachine merge upstream

kibanamachine and others added 2 commits May 24, 2021 05:41
@markov00 markov00 self-requested a review May 24, 2021 13:15
Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@nickofthyme nickofthyme enabled auto-merge (squash) May 24, 2021 13:31
@nickofthyme
Copy link
Contributor Author

@timroes could you review this as an interim solution? Thanks!

@kertal
Copy link
Member

kertal commented Jun 7, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 420.0KB 420.0KB +34.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@nickofthyme nickofthyme marked this pull request as draft June 7, 2021 14:42
auto-merge was automatically disabled June 7, 2021 14:42

Pull request was converted to draft

@nickofthyme
Copy link
Contributor Author

Will address memory leak in elastic/elastic-charts#1201

@nickofthyme nickofthyme deleted the fix-discover-memory-leak branch June 10, 2021 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants