# נגמר הזיכרון לקובצי נכסים: precompile עם bitnami

**URL:** https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [23 באוגוסט,‏ 2024,‏ 3:05pm UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091 "2024-08-23T15:05:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![davispuh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davispuh/32/443494_2.png) [@davispuh](https://meta.discourse.org/u/davispuh)
#### Post date: [23 באוגוסט,‏ 2024,‏ 3:05pm UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091/1 "2024-08-23T15:05:25Z")

</div>

Hi,

I’m trying to install Discourse but assets:precompile step is getting OOM killed.  
I have 4 cores and 6 GB of RAM but it’s still not enough.

```plaintext
26604 ? Ss 0:00 \_ sh -c RAILS_ENV=production bundle exec rake assets:precompile
26611 ? S 0:02 \_ sh -c CI=1 yarn --cwd app/assets/javascripts/discourse run ember build -prod && SKIP_EMBER_CLI_CO
26673 ? Sl 0:24 \_ node /opt/bitnami/node/bin/yarn --cwd app/assets/javascripts/discourse run ember build -prod
26695 ? S 0:00 \_ /bin/sh -c /opt/bitnami/discourse/node_modules/.bin/ember build -prod
26696 ? Sl 3:14 \_ ember
26749 ? Ssl 0:47 \_ /opt/bitnami/node/bin/node /opt/bitnami/discourse/node_modules/thread-loader/dist
26757 ? Ssl 0:44 \_ /opt/bitnami/node/bin/node /opt/bitnami/discourse/node_modules/thread-loader/dist
26774 ? Ssl 0:59 \_ /opt/bitnami/node/bin/node /opt/bitnami/discourse/node_modules/thread-loader/dist

```

```plaintext
Out of memory: Killed process 26655 (ember) total-vm:67001688kB, anon-rss:1271204kB, file-rss:128kB, shmem-rss:0kB, UID:101 pgtables:39516kB oom_score_adj:200

```

Is there a way to limit precompile process to just 1 core or some way to reduce RAM usage?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [23 באוגוסט,‏ 2024,‏ 3:33pm UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091/2 "2024-08-23T15:33:06Z")

</div>

The bitnami image isn’t maintained or recommended by us, so I’m afraid it’s tricky to help here. We always recommend following our [standard install](https://meta.discourse.org/t/142537?silent=true) guide, which is regularly tested on small machines (1GB RAM + 2GB swap).

If you must stick with the bitnami image, then I’d recommend checking you’re on the latest version of Discourse. There have been a few improvements to memory requirements & build speed over the last year or so.

---

<div class="post-metadata">

### Author: ![davispuh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davispuh/32/443494_2.png) [@davispuh](https://meta.discourse.org/u/davispuh)
#### Post date: [23 באוגוסט,‏ 2024,‏ 3:51pm UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091/3 "2024-08-23T15:51:12Z")

</div>

Yeah I’m on latest image (3.3.0). I added `CHEAP_SOURCE_MAPS=1 JOBS=1` and now it succeeded without getting OOM killed.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [22 בספטמבר,‏ 2024,‏ 3:51pm UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091/4 "2024-09-22T15:51:47Z")

</div>

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