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

Hibernate Absinthe.Schema.Manager #1037

Merged

Conversation

binaryseed
Copy link
Contributor

I noticed that the Absinthe.Schema.Manager process was using a lot of memory in our app, but it shouldn't since it doesn't do anything. I dug around and realized that it never gets GC'd since the process inits and then never does anything again, and therefore it never gets checked for memory usage.

This PR fixes that by having it :hibernate immediately which triggers a GC.

@binaryseed
Copy link
Contributor Author

For our large schema, this was ~60mb!

@benwilson512 benwilson512 merged commit c5db6d1 into absinthe-graphql:master Feb 1, 2021
@benwilson512
Copy link
Contributor

Great catch!

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

Successfully merging this pull request may close these issues.

2 participants