# Out of memory crash on Windows 10 PC

**URL:** <https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141>\
**Category:** General\
**Created:** [22 November 2021 22:40 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141 "2021-11-22T22:40:52Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [26 November 2021 17:04 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/21 "2021-11-26T17:04:47Z")

</div>

Update.  
The site has not crashed now for just over 40 hours which is a record.  
I started it in a cmd window with `node C:\Users\tbg\AppData\Roaming\npm\node_modules\node-red\red.js --max-old-space-size=8192`

I also got the code running to monitor the garbage collection. Here is a graph for the past 12 hours.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/1331c8ddc0b4be3b07a53dd5a8fe5d0700cd809e.png)

I have not had time to research each of the numbers yet, so am not sure what I am looking for / at.

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [10 December 2021 13:23 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/22 "2021-12-10T13:23:04Z")

</div>

The server was up for a record 9 days straight before a Windows Update nagged for a reboot.

I am going to take the solution to be running it with `--max-old-space-size=8192`.

Thanks everyone for your help - its a bit stressful having so many people expecting five 9's uptime!

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [10 December 2021 13:39 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/23 "2021-12-10T13:39:51Z")

</div>

Didnt you also update the mysql node to the beta version ? (that had a memory leak?)  
so we dont know what really fixed the issue 😉

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [10 December 2021 14:00 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/24 "2021-12-10T14:00:06Z")

</div>

No I did not.  
It has an update/insert bug that prevents me from using it at the moment.  
So the fix is the only single change I made it would seem.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [10 December 2021 14:06 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/25 "2021-12-10T14:06:01Z")

</div>

> [@thebaldgeek](#):
>
> the fix is the only single change I made it would seem

i see .. thanks for the clarification 👍

---

<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:** [24 December 2021 14:06 UTC](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141/26 "2021-12-24T14:06:16Z")

</div>

Closed on 24 December 2021 14:06 UTC

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

[Previous page](https://discourse.nodered.org/t/out-of-memory-crash-on-windows-10-pc/54141.md?page=1)
