Skip to content

Server leaks memory #693

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

Closed
der-flo opened this issue Feb 17, 2023 · 2 comments
Closed

Server leaks memory #693

der-flo opened this issue Feb 17, 2023 · 2 comments

Comments

@der-flo
Copy link

der-flo commented Feb 17, 2023

My Spring server process for a big Rails app leaks memory with every RSpec run. The amount varies, but my tests show a bigger increase when files are changed between the runs. Because we're doing BDD, the process gets enormous and slow very quickly.

Is this known behavior or specific to my use case? I worked through the documentation but couldn't find hints. Ideas to track this down further?


Versions:
spring 4.1.1
rails 7.0.4.2
ruby 3.1.3

@rafaelfranca
Copy link
Member

You could use https://github.com/Shopify/heap-profiler to find what is really growing.

But since this is RSpec, there is a chance that RSpec has some internal cache that isn't being cleanup every time you run the test.

@der-flo
Copy link
Author

der-flo commented Jun 9, 2023

@rafaelfranca Thank's for the tip! That indeed helps me to track this down further. It indeed is not clear yet wether my application or spring itself causes the issue.
I'll close this issue and eventually reopen it with more information.

@der-flo der-flo closed this as completed Jun 9, 2023
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

2 participants