# Setup fails: Cannot allocate memory

**URL:** <https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149>\
**Category:** Self-hosting\
**Created:** [August 4, 2022, 7:10pm UTC](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149 "2022-08-04T19:10:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rsx](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rsx](https://meta.discourse.org/u/rsx)\
**Post date:** [August 4, 2022, 7:22pm UTC](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149/3 "2022-08-04T19:22:11Z")

</div>

> [@](#):
>
> Is this the only thing running within the VM?

Yes (except one small perl script).

> [@](#):
>
> What’s the result of `cat /proc/meminfo | grep MemFree` ?

MemFree: 758840 kB

But more than 3 GB is for cache.

> [@](#):
>
> Did you follow the [Standard Install](https://meta.discourse.org/t/142537) and run `discourse-setup`?

The latter without any changes.

> [@](#):
>
> What are `db_shared_buffers`, `unicorn_workers` and `db_work_mem` in your app.yml?

```plaintext
db_shared_buffers: "1024MB"
no entry for unicorn_workers
#db_work_mem: "40MB"

```

---

_[View the full topic](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149)._
