# 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:** 2

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [August 4, 2022, 7:13pm UTC](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149/2 "2022-08-04T19:13:00Z")

</div>

Is this the only thing running within the VM?

What’s the result of `cat /proc/meminfo | grep MemFree` ?

Did you follow the [Standard Install](https://meta.discourse.org/t/142537?silent=true) and run `discourse-setup`? It should tune the memory settings for the spec of the VM assuming it meets the minimum requirements.

What are `db_shared_buffers`, `unicorn_workers` and `db_work_mem` in your app.yml?

---

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