# On premise out of memory issue (

**URL:** <https://community.n8n.io/t/on-premise-out-of-memory-issue/33381>\
**Category:** Questions\
**Tags:** deployment, out-of-memory\
**Created:** [November 24, 2023, 1:52pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381 "2023-11-24T13:52:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibault\_Granie](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault_granie/32/29193_2.png) [@Thibault\_Granie](https://community.n8n.io/u/Thibault_Granie)\
**Post date:** [November 24, 2023, 1:52pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/1 "2023-11-24T13:52:15Z")

</div>

## Describe the problem/error/question

When running a workflow treating about 2 x 16k items, n8n tells I have an out of memory error.  
The image on my kubernetes server crash and restart.

I don’t understand if it is a real memory error or if kube is reloading the service because it could not reach him.  
I tried upgrading the memory with the following environment variable :

```
NODE_ENV: production
NODE_OPTIONS: "--use-openssl-ca --trace-warnings --max-old-space-size=14336"

```

and settings memory for the kube image :  
resources:  
requests:  
memory: 15Gi  
limits:  
memory: 15Gi

## What is the error message (if any)?

**On kube** : Liveness probe failed: Get “[http://10.2.0.218:5678/healthz](http://10.2.0.218:5678/healthz)”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

**On n8n** : ERROR: Execution stopped at this node

n8n may have run out of memory while executing it. More context and tips on how to avoid this [in the docs](https://docs.n8n.io/flow-logic/error-handling/memory-errors)

## Information on your n8n setup

- \*\*n8n version: 1.17.1
- \*\*Database (default: SQLite): Postgresql
- **Running n8n via Docker**
- **Operating system:** Linux

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [November 24, 2023, 1:52pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/2 "2023-11-24T13:52:16Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Thibault\_Granie](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault_granie/32/29193_2.png) [@Thibault\_Granie](https://community.n8n.io/u/Thibault_Granie)\
**Post date:** [November 27, 2023, 11:30am UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/3 "2023-11-27T11:30:42Z")

</div>

Sorry,I Though it was provided, my bad.

> [@n8n](#):
>
> - **n8n version:** 1.17.1
> - **Database (default: SQLite):** PostgreSql
> - **n8n EXECUTIONS\_PROCESS setting (default: own, main):** no set (default ?)
> - **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
> - **Operating system:** Linux

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [November 29, 2023, 3:03pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/5 "2023-11-29T15:03:00Z")

</div>

Hi @Thibault_Granie, I am very sorry to hear you’re having trouble.

Processing larger datasets in n8n can indeed eat up a lot more memory than the dataset size itself. The exact requirements usage would, however, depend not just on the data, but also on the type and number of nodes you have in use for example.

As such it’s very hard to say what exactly is killing your pod specifically. If you suspect it could be k8s-specific logic, perhaps you want to simply test the problematic execution outside of your cluster using a test instance fired up using something like `docker run -it --rm --name n8n -p 5678:5678 --memory="15360" n8nio/n8n:1.17.1`?

It might be worth opening `docker stats` in parallel to get an idea of the memory consumption during your workflow execution.

---

<div class="post-metadata">

**Author:** ![Thibault\_Granie](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault_granie/32/29193_2.png) [@Thibault\_Granie](https://community.n8n.io/u/Thibault_Granie)\
**Post date:** [November 29, 2023, 3:30pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/6 "2023-11-29T15:30:59Z")

</div>

Hi @MutedJam

Thanks for your reply.

I found a solution : basically it seems that it was kube issue : kube killed the pod because the pod was not responding to the liveness acknowledgment due too a too high charge.

I changed the parameter :

- livenessProbe:
  - timeoutSeconds: 60

And it works.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 27, 2024, 3:31pm UTC](https://community.n8n.io/t/on-premise-out-of-memory-issue/33381/7 "2024-02-27T15:31:22Z")

</div>

Closed on February 27, 2024, 3:31pm UTC

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