# Out of memory on rebuild with 4GB swap?

**URL:** https://meta.discourse.org/t/out-of-memory-on-rebuild-with-4gb-swap/392831
**Category:** Self-hosting
**Created:** [January 6, 2026, 11:41pm UTC](https://meta.discourse.org/t/out-of-memory-on-rebuild-with-4gb-swap/392831 "2026-01-06T23:41:29Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 6, 2026, 11:41pm UTC](https://meta.discourse.org/t/out-of-memory-on-rebuild-with-4gb-swap/392831/1 "2026-01-06T23:41:29Z")

</div>

I’ve had several two-container bootstraps fail today with errors like

```
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGKILL (Forced termination): ember build -prod"]

```

I think once I added swap and had it work the next time. But this has 4GB swap:

```plaintext
# free -h
               total used free shared buff/cache available
Mem: 1.9Gi 1.1Gi 391Mi 45Mi 661Mi 830Mi
Swap: 4.0Gi 3.1Gi 911Mi

```

and it’s still failing. And if I stop the container before the bootstrap, it does succeed.

---

_[View the full topic](https://meta.discourse.org/t/out-of-memory-on-rebuild-with-4gb-swap/392831)._
