ChainSafe / lodestar

🌟 TypeScript Implementation of Ethereum Consensus
https://lodestar.chainsafe.io
Apache License 2.0
1.19k stars 291 forks source link

Investigate resident set vs heap total memory difference #3510

Open dapplion opened 2 years ago

dapplion commented 2 years ago

Lodestar nodes show a significant difference between the process resident set or total process memory and the total heap size. As far as I'm concerned, there's no other large memory item that could justify a 500MB difference

Screenshot from 2021-12-10 18-34-46

This issue is to track research into what could cause this difference:

philknows commented 1 year ago

It might be array buffer backing stores or native code package allocation? How do we debug this? Need to investigate that first. Core dumps?