Your Node is Leaking Memory? setTimeout Could be the Reason
Briefly

It's been just fine to use the Timeout object primarily as a token similar to a number. However, the Timeout object, holding references, may not be collected by the garbage collector.
This Timeout object can contain more state than what's apparent, like with AsyncLocalStorage. It's essential for node developers to understand how node manages timeouts to prevent memory leaks.
Read at Pocoo
[
|
]