# Нехватка памяти для assets: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 15:05:25 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:** 1\
**Showing post:** 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 15:05:25 UTC](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091/1 "2024-08-23T15:05:25Z")

</div>

Здравствуйте,

Я пытаюсь установить Discourse, но шаг `assets:precompile` завершается ошибкой из-за нехватки памяти (OOM).  
У меня 4 ядра и 6 ГБ ОЗУ, но этого всё равно недостаточно.

```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

```

Есть ли способ ограничить процесс precompile одним ядром или как-то уменьшить потребление ОЗУ?

---

_[View the full topic](https://meta.discourse.org/t/running-out-of-memory-for-assets-precompile-with-bitnami/323091)._
