# WARNING: Discourse requires 1GB RAM

**URL:** https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [April 20, 2020, 12:40pm UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607 "2020-04-20T12:40:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vove](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@vove](https://meta.discourse.org/u/vove)
#### Post date: [April 20, 2020, 12:40pm UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/1 "2020-04-20T12:40:52Z")

</div>

Hi all!

I’ve been trying to install Discourse, but without success so far.

I have a VPS with 1 GB ram and a 2gb swap file. Whenever I run ./discourse-setup I get the following error. (I’ve done a few clean installs on this VPS and also tried with 5b and 10gb swap files)

[https://i.imgur.com/kn7ZsMw.png](https://i.imgur.com/kn7ZsMw.png)

As you can see in the screenshots there’s enough space free in the swap file.

I’ve searched the forums but all I get is either “the setup should make ask to make a swap file itself” or “you can make a swap file and then run the installation again”

I hope anyone has a solution.

Thanks in advance.

---

<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: [April 20, 2020, 12:45pm UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/2 "2020-04-20T12:45:57Z")

</div>

Your free + used is 1000MB, a gigabyte is 1024MB. Where is this hosted?

---

<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: [April 20, 2020, 12:47pm UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/3 "2020-04-20T12:47:10Z")

</div>

You have less than 1000mb of ram. The message is correct. You can either get more ram, edit discourse-setup to skip the test, or create a yml file by hand.

---

<div class="post-metadata">

### Author: ![Maltazard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maltazard/32/300126_2.png) [@Maltazard](https://meta.discourse.org/u/Maltazard)
#### Post date: [March 29, 2023, 10:12am UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/4 "2023-03-29T10:12:39Z")

</div>

I’ve met same error like you.  
I manually modified discourse-setup and change the limit from 990 to a smaller number.  
And it works.. for now.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [March 29, 2023, 10:59am UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/5 "2023-03-29T10:59:42Z")

</div>

I believe the limit was already moved down just a little, because some providers provide just a little less than 1G when you get a machine with a nominal 1G. (Perhaps see [Fatal error when trying to start Docker (Oracle VM)](https://meta.discourse.org/t/fatal-error-when-trying-to-start-docker-oracle-vm/193482))

What’s your provider? What does  
`free -m --si`  
show?

(In any case, if you have enough swap+RAM then the forum will function. If you have too little RAM the forum may run slower and upgrades may take longer. 3G of swap+RAM is enough for a small forum, and it’s what I use.)

---

<div class="post-metadata">

### Author: ![Maltazard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maltazard/32/300126_2.png) [@Maltazard](https://meta.discourse.org/u/Maltazard)
#### Post date: [March 30, 2023, 6:32am UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/6 "2023-03-30T06:32:54Z")

</div>

In my case, it is an Amazon EC2 server.  
Here’s the result of `free -m --si`

```plaintext
              total used free shared buff/cache available
Mem: 986 594 75 14 317 209
Swap: 4294 811 3483

```

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [March 30, 2023, 7:05am UTC](https://meta.discourse.org/t/warning-discourse-requires-1gb-ram/148607/7 "2023-03-30T07:05:51Z")

</div>

Thanks - I think that justifies an adjustment from 990 to something a little less - perhaps 980. The intention is surely to support commodity offerings with a nominal 1G, and although there might be a hard limit, it’s much smaller than that, so a small adjustment downward would put no-one in jeopardy.
