# Memory issues with 3.1.5?

**URL:** <https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876>\
**Category:** General\
**Created:** [25 February 2024 10:32 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876 "2024-02-25T10:32:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennyb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bennyb/32/38055_2.png) [@bennyb](https://discourse.nodered.org/u/bennyb)\
**Post date:** [25 February 2024 10:32 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/1 "2024-02-25T10:32:34Z")

</div>

I recently updated nodered from 3.1.2 to 3.1.5, including some nodes which I don't recall exactly.

- Nodered v3.1.5
- Node.js V16.02
- RPI4

Since the update I noticed that the memory used by nodered is slowly increasing (over 24hrs) which makes the system very slow at the end.  
I added some flows but they do not cause the problem (disabled them temporarily).  
Is there a simple way to roll back to 3.1.2 so I can determine if this is causing the problem?

-ben

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 February 2024 10:47 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/2 "2024-02-25T10:47:03Z")

</div>

> [@bennyb](#):
>
> Is there a simple way to roll back to 3.1.2 so I can determine if this is causing the problem?

if you run the bash script with --help at the end  
`bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --help`  
it gives you the options you can use:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --help
Usage: /dev/fd/63 [options]

Options:
  --help display this help and exit
  --confirm-root install as root without asking confirmation
  --confirm-install confirm installation without asking confirmation
  --confirm-pi confirm installation of PI specific nodes without asking confirmation
  --skip-pi skip installing PI specific nodes without asking confirmation
  --restart restart service if install succeeds
  --allow-low-ports add capability to bind to ports below 1024 (default is disallow)
  --update-nodes run npm update on existing installed nodes (within scope of package.json)
  --no-init don't ask to initialise settings if they don't exist
  --nodered-user specify the user to run as, useful for installing as sudo - e.g. --nodered-user=pi
  --nodered-version if not set, the latest version is used - e.g. --nodered-version="3.0.1"
  --node16 if set, forces install of major version of nodejs 16 LTS
  --node18 if set, forces install of major version of nodejs 18 LTS
  --node20 if set, forces install of major version of nodejs 20 LTS
                    if none set, install nodejs 18 LTS if nodejs version is less than 16,
                    otherwise leave current install

Note: if you use allow-low-ports it may affect the node modules paths - see https://stackoverflow.com/a/65560687

```

notice the version option  
` --nodered-version if not set, the latest version is used - e.g. --nodered-version="3.0.1"`

so you should be able to figure it out from here

---

<div class="post-metadata">

**Author:** ![bennyb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bennyb/32/38055_2.png) [@bennyb](https://discourse.nodered.org/u/bennyb)\
**Post date:** [25 February 2024 11:10 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/3 "2024-02-25T11:10:19Z")

</div>

Thanks, that was easy to do !  
I also found which nodes where updated and downgraded them as well, see what will happen now.

---

<div class="post-metadata">

**Author:** ![bennyb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bennyb/32/38055_2.png) [@bennyb](https://discourse.nodered.org/u/bennyb)\
**Post date:** [25 February 2024 13:50 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/4 "2024-02-25T13:50:37Z")

</div>

Problem solved!

One node behaved strange, rolled back to an older version and problems are gone.

Thanks for pointing me at the CMDline options!

-ben

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 February 2024 13:54 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/5 "2024-02-25T13:54:12Z")

</div>

Can you please share the node so that other people can know if they have the same issue? Thanks.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 February 2024 13:57 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/6 "2024-02-25T13:57:19Z")

</div>

And did you try upgrading NR to see if everything is fine with the rolled back node but latest NR?

---

<div class="post-metadata">

**Author:** ![bennyb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bennyb/32/38055_2.png) [@bennyb](https://discourse.nodered.org/u/bennyb)\
**Post date:** [25 February 2024 18:56 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/7 "2024-02-25T18:56:00Z")

</div>

Yes, I've installed the latest version of NR and all nodes except the suspicous one.  
All is working fine now and I'm in contact with the author of this node to see what is causing it.

-ben

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 March 2024 18:56 UTC](https://discourse.nodered.org/t/memory-issues-with-3-1-5/85876/8 "2024-03-10T18:56:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
