-
Notifications
You must be signed in to change notification settings - Fork 10
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 when setting options.timeout
per subgraph in transportEntries
#303
Comments
options.timeout
in transportEntriesoptions.timeout
in transportEntries
options.timeout
in transportEntriesoptions.timeout
per subgraph in transportEntries
Thanks for creating the issue and the feedback! |
@ardatan Thank you for the proposed fix! However, we just tested the alpha release for a couple hours and noticed that it didn't help, and actually might have increased the rate of leaking memory. ![]() |
Can you try the latest LTS Node (v22.12.0)? Just to make sure it's not a Node quirk (which we've had happen before 😅). |
@enisdenjo Thanks for the suggestion, but we're already using node v22.12.0. |
Ah ok cool, because I see v22.10.0 in the issue description. |
Ah, we must've upgraded to 22.12.0 since I initially logged the issue. But I did verify that we're currently on 22.12.0 |
Hi @jaffemd, is there any chance we can get your help with reproducing this issue somehow? We've tried to reproduce it, but it does not seem to leak. |
Also, @jaffemd , is it possible for you to share a memory snapshot? |
Hi @jaffemd , did you had the chance to review my last comments? A reproduction or additional details would really help us to provide support on this issue. |
Hi @dotansimha, thank you for the responses! Unfortunately, it's not easy for us to get a memory snapshot or share any more reproduction details than the config we have. We do have several custom plugins that we've implemented, but we've tried turning those off and we still observed the memory leak as long as any of the various settings that have set an upstreamTimeout on subgraph requests. Here are our config files:
|
Versions:
Hi! We currently have a hive gateway setup to serve a supergraph.
We recently tried adding timeout settings per subgraph. Below is our config:
After a couple of days, we observed a memory leak and traced it to this code change on our side.
After trying several things, the single change that fixed our memory leak was removing the
options.timeout
setting in transportEntries. We moved the per subgraph timeout to a single setting on the newly addedrequestTimeout
option, and the memory leak was immediately fixed.The text was updated successfully, but these errors were encountered: