# Problems building a new server

**URL:** https://meta.discourse.org/t/problems-building-a-new-server/271944
**Category:** Self-hosting
**Created:** [July 18, 2023, 7:39am UTC](https://meta.discourse.org/t/problems-building-a-new-server/271944 "2023-07-18T07:39:15Z")
**Posts on this page:** 1
**Showing post:** 6

<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: [July 18, 2023, 11:08am UTC](https://meta.discourse.org/t/problems-building-a-new-server/271944/6 "2023-07-18T11:08:01Z")

</div>

You need at least 1G of swap space - do you have it?

```plaintext
free

```

will tell you.

Edit: I recommend you read  
[MKJ’s Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355)  
too. You have this warning which is not good on a small memory system

> [@danielabc](#):
>
> `43.110 # WARNING Memory overcommit must be enabled`

See the Kernel Configuration section - you need these effects, although whether it’s exactly these commands may depend on which distribution you are running:

> [@MKJ's Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355/1):
>
> ## Kernel configuration
> 
> Redis (one of the key components on which Discourse is built) strongly recommends disabling transparent huge pages, and I also allow memory overcommit.
> 
> ```plaintext
> echo 'sys.kernel.mm.transparent_hugepage.enabled=never' > /etc/sysctl.d/10-huge-pages.conf
> echo 'vm.overcommit_memory=1' > /etc/sysctl.d/90-vm_overcommit_memory.conf
> sysctl --system
> 
> ```

Edit: you can check these two important settings on your running server like this

```plaintext
# cat /proc/sys/vm/overcommit_memory
1
# cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]

```

---

_[View the full topic](https://meta.discourse.org/t/problems-building-a-new-server/271944)._
