# Node module memory leak?

**URL:** <https://community.auth0.com/t/node-module-memory-leak/76943>\
**Category:** Get Help\
**Tags:** nodejs, node-auth0\
**Created:** [January 25, 2022, 1:44am UTC](https://community.auth0.com/t/node-module-memory-leak/76943 "2022-01-25T01:44:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 25, 2022, 1:44am UTC](https://community.auth0.com/t/node-module-memory-leak/76943/1 "2022-01-25T01:44:50Z")

</div>

We’ve been on the auth0 node module v2.18 for a few years, so we just went to update to 2.37. Once we update the module, our node server is leaking memory with each request.  
Is anyone else seeing this? I’ve tried updating node, and also tried updating some of the dependencies, but it’s still gradually using more and more memory.  
Thanks,  
Ken

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 25, 2022, 5:23pm UTC](https://community.auth0.com/t/node-module-memory-leak/76943/3 "2022-01-25T17:23:36Z")

</div>

Hi @ken2,

Welcome to the Auth0 Community!

Let me reach out to the team that manages that SDK and I’ll update here with their response. You may want to create an issue directly [in the repo](https://github.com/auth0/node-auth0/issues).

---

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 25, 2022, 11:55pm UTC](https://community.auth0.com/t/node-module-memory-leak/76943/4 "2022-01-25T23:55:12Z")

</div>

Thanks, will do that now.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 25, 2022, 11:56pm UTC](https://community.auth0.com/t/node-module-memory-leak/76943/5 "2022-01-25T23:56:31Z")

</div>

Thank you! I’ll add it to the ticket.

---

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 26, 2022, 12:07am UTC](https://community.auth0.com/t/node-module-memory-leak/76943/6 "2022-01-26T00:07:01Z")

</div>

I’m going to try one more thing before I file a bug to make absolutely sure it’s the auth0 update that causes the leak.

---

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 26, 2022, 2:37am UTC](https://community.auth0.com/t/node-module-memory-leak/76943/7 "2022-01-26T02:37:40Z")

</div>

Okay sorry Dan! This leak was not auth0 after all. Sorry for the false alarm! You can delete this thread if you want.  
-Ken

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 26, 2022, 3:33pm UTC](https://community.auth0.com/t/node-module-memory-leak/76943/8 "2022-01-26T15:33:25Z")

</div>

Thanks for the update! I am going to update the ticket and let them know it is not an issue. Let us know if you run into anything else!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 14, 2022, 6:20pm UTC](https://community.auth0.com/t/node-module-memory-leak/76943/9 "2022-03-14T18:20:19Z")

</div>


