You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graphql-subscriptions dependency has a Promise memory leak that was fixed with pull request: apollographql/graphql-subscriptions#209
Problem is, this pull request is over a year old and it seems it won't be merged in.
We were solving this issue by installing specific graphql-subscriptions version (github:urossmolnik/graphql-subscriptions#v1.3.0) and making sure package-lock file is properly "deduped" (npm dedupe) so version v1.1.0 of graphql-subscriptions package is not installed locally for type-graphql package.
This does not solve our problem anymore with npm 7 - something to do with SemVer for packages installed directly from Git.
To Reproduce
Start a subscriber to a subscription which rejects messages and start publishing messages. You'll notice memory keeps increasing. Memory profile will confirm.
Do the same thing using github:urossmolnik/graphql-subscriptions#v1.3.0 and you'll notice memory is not increasing.
Expected Behavior
Not have a memory leak :)
Not sure what the solution would be. Are we missing something or would removing graphql-subscription dependency be the only solution?
The text was updated successfully, but these errors were encountered:
urossmolnik
changed the title
graphql-subscription dependency causing memory issues
graphql-subscription dependency causing memory leak
Nov 17, 2020
Describe the Bug
graphql-subscriptions
dependency has a Promise memory leak that was fixed with pull request: apollographql/graphql-subscriptions#209Problem is, this pull request is over a year old and it seems it won't be merged in.
We were solving this issue by installing specific
graphql-subscriptions
version (github:urossmolnik/graphql-subscriptions#v1.3.0) and making sure package-lock file is properly "deduped" (npm dedupe
) so version v1.1.0 ofgraphql-subscriptions
package is not installed locally fortype-graphql
package.This does not solve our problem anymore with npm 7 - something to do with SemVer for packages installed directly from Git.
To Reproduce
Start a subscriber to a subscription which rejects messages and start publishing messages. You'll notice memory keeps increasing. Memory profile will confirm.
Do the same thing using
github:urossmolnik/graphql-subscriptions#v1.3.0
and you'll notice memory is not increasing.Expected Behavior
Not have a memory leak :)
Not sure what the solution would be. Are we missing something or would removing
graphql-subscription
dependency be the only solution?The text was updated successfully, but these errors were encountered: