# Restarting in middle of night and multiple failures to deploy

**URL:** <https://discourse.nodered.org/t/restarting-in-middle-of-night-and-multiple-failures-to-deploy/66955>\
**Category:** General\
**Created:** [26 August 2022 09:39 UTC](https://discourse.nodered.org/t/restarting-in-middle-of-night-and-multiple-failures-to-deploy/66955 "2022-08-26T09:39:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 August 2022 10:33 UTC](https://discourse.nodered.org/t/restarting-in-middle-of-night-and-multiple-failures-to-deploy/66955/9 "2022-08-26T10:33:25Z")

</div>

> [@ctreischman](#):
>
> I see this which seems to be the cause: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Yes, that will kill node-red.

  

searching the forum for "Reached heap limit"

> [@High CPU usage & out of memory](https://discourse.nodered.org/t/high-cpu-usage-out-of-memory/49976):
>
> Hi, I've got problem where the node-red service have almost 95-100% cpu usage and eventually restart it self. Here's what I've got from syslog: node-red[5886]: (Use `node --trace-deprecation ...` to show where the warning was created) node-red[5886]: 21 Aug 00:26:43 - [info] node-red[5886]: Welcome to Node-RED node-red[5886]: =================== node-red[5886]: 21 Aug 00:26:43 - [info] Node-RED version: v2.0.5 node-red[5886]: 21 Aug 00:26:43 - [info] Node.js version: v16.6.2 node-red[5886]: 21…

searching the forum for "JavaScript heap out of memory"  
[https://discourse.nodered.org/search?q=JavaScript%20heap%20out%20of%20memory](https://discourse.nodered.org/search?q=JavaScript%20heap%20out%20of%20memory)

Lots of reasons and lots of discussions, solutions and answers - start there.

---

_[View the full topic](https://discourse.nodered.org/t/restarting-in-middle-of-night-and-multiple-failures-to-deploy/66955)._
