# Memory leak, what am I doing wrong?

**URL:** <https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627>\
**Category:** General\
**Created:** [5 June 2018 17:52 UTC](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627 "2018-06-05T17:52:58Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [15 June 2018 00:51 UTC](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627/20 "2018-06-15T00:51:02Z")

</div>

Just a little follow up. The author of node-red-contrib-ftp-server has updated it to work with 8.x, but apparently the nodejs ftpd module is not working with 10.x.

I’ve upgraded node-red-contrib-ftp-server and nodejs to 8.x and if anything the leakage is a bit worse than with v4.9.2, but in any event its not a serious problem as after node-red crashes for lack of memory systemd restarts it in a a few seconds which is inconsequential in the overall scheme of things since my Lorex DVR has a 4+ second latency between triggering and sending a snapshot.

Its been running great despite the periodic crashes and restarts. I hope to try reducing the the --max\_old\_space\_size=256 paraneter this weekend to make the garbage collection more aggressive. I hope my understanding of this parameter is not reversed 🙂

---

_[View the full topic](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627)._
