# Node-RED and memory

**URL:** https://discourse.nodered.org/t/node-red-and-memory/4530
**Category:** General
**Created:** [3 November 2018 15:47 UTC](https://discourse.nodered.org/t/node-red-and-memory/4530 "2018-11-03T15:47:04Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [4 November 2018 13:28 UTC](https://discourse.nodered.org/t/node-red-and-memory/4530/9 "2018-11-04T13:28:31Z")

</div>

> [@rmckinnon](#):
>
> My thought is that if I could raise the 54M of memory to 4G, I should be good.

You don't allocate memory to node. Node asks the OS for memory when it needs it. You hit OutOfMemory when the OS is unable to allocate any more memory.

If you are trying to process thousands of files using NR then it sounds like you're trying to do too much at once. How does the flow operate? Have you built any throttling in or is your flow trying to handle the thousands of files in one go?

---

_[View the full topic](https://discourse.nodered.org/t/node-red-and-memory/4530)._
