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

Memory leak - server side rendering #27

Open
NealHumphrey opened this issue Oct 20, 2020 · 0 comments
Open

Memory leak - server side rendering #27

NealHumphrey opened this issue Oct 20, 2020 · 0 comments

Comments

@NealHumphrey
Copy link

I've implemented a Nuxt app utilizing vuex-search. The app is server-side rendered, and is experiencing a memory leak on the server. Loading any page (including pages that don't use the search function) increases the memory usage of the server until it eventually crashes.

By removing vuex-search searchPlugin from the 'plugins' section of of the store, the memory leak goes away. The searchPlugin settings are implemented just as in the example in the README (though of course for different state attributes).

Since this is occuring on loading of pages that don't have any custom implementation of vuex-search, and the only custom code that's written is the config that's passed to the searchPlugin method, it seems like the memory leak is probably something internal to vuex-search. I'll take a pass at the source code of this method and see if I can identify anything, but do you know of any implementations that use server side rendering with vuex-search that have successfully avoided this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant