-
-
Notifications
You must be signed in to change notification settings - Fork 289
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 on node versions below 18.17.0 #5851
Comments
rebased Current |
Update: protons may not be the root cause, could be the common issue of lodestar |
Turns out the leak was also on |
Leak is present on
|
All bare metal deployments go with NodeJS v18.16.1, docker deployments go with NodeJS 20, that's what we should use from Lodestar v1.10.0. I deployed |
Deployed several commits from over the last couple weeks to As a note we are passing AbortSignal into fetch in beacon-node but not in validator but leak was present in both. Built a branch |
The leak was fixed in nodejs/undici#2049 and released in 5.21.1 That fix was applied to node 20.1.0 [ba9ec91f0e] - deps: update undici to 5.21.1 (Node.js GitHub Bot) nodejs/node#47488 I do not see that version of undici backported to node 18 which confirms the behavior we saw empirically. |
Thanks @matthewkeil for the thorough testing. I am also pretty confident this is related to native fetch on older node versions after reviewing all the PRs we did in 1.10 and going through the nodejs issues. I also never saw this on my end on any server since I pretty early updated to node 20.
The fix has been backported to v18.17.0 as well
|
Nice catch @nflaig! I was looking at the synopsis on the releases page and didnt notice the tilde! 🤦♂️ On the upside still does confirm because we were running 18.16.1. So i think we are safe with 18.17.0. I will deploy that to beta with unstable to double check and we can make a docs note. |
Sounds good, maybe we just bump the version in package.json for next release Lines 4 to 6 in 34d8955
|
Even better. Test is deploying now! 🚀 |
Re-opening for better visibility, would suggest we keep this open for a few more weeks |
NOTE: There is a memory leak on Lodestar version 1.10 with node versions below 18.17.0.
Make sure to update node to a version >=18.17.0 or >=20.1.0. We recommend to install the latest release of node 20.
Describe the bug
Memory is growing unbounded on a number of groups.
Affected Groups
beta
on versionv1.10.0/mkeil/network-worker-new-space/d0f01f3
(recently rebased onto unstable, no leak prior)feat1
on versionv1.10.0/mkeil/network-worker-new-space/d0f01f3
(recently rebased onto unstable, no leak prior)feat2
on versionv1.9.2/tuyen/gossipsub_protons/893eff7
feat3
on versionv1.10.0/bbadfed
Affected in
nogroup
nogroup-ctvoss-2
on versionv1.10.0/tuyen/v1.10.0_rc.1_no_ee/83f6ba7
Unaffected in
nogroup
nogroup-ctvoss-0
on versionv1.8.0/stable/a4b29cf
nogroup-ctvoss-1
on versionv1.8.0/tuyen/PR_5559_5592/b2a3949
nogroup-ctvoss-3
on versionv1.8.0/tuyen/PR_5574_5592/2101f95
nogroup-ctvoss-4
on versionv1.8.0/a4b29cf
nogroup-hzax41-0
on versionv1.8.0/tuyen/network_thread_profile/f245849
Unaffected Groups
unstable
on versionv1.10.0/a7466f5
stable
on versionv1.10.0/7546292
stress_test
onv1.8.0/8464c6b
goerli
onv1.10.0/7546292
lido-goerli
onv1.10.0/7546292
sepolia
onv1.10.0/7546292
Expected behavior
Memory should remain stable
Steps to reproduce
No response
Additional context
No response
Operating system
Linux
Lodestar version or commit hash
somewhere post 1.9.2 or maybe 1.10.0
The text was updated successfully, but these errors were encountered: