# How much RAM is needed to host discourse along with other services?

**URL:** https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751
**Category:** Self-hosting
**Tags:** unsupported-install, hosting
**Created:** [November 20, 2020, 2:53pm UTC](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751 "2020-11-20T14:53:26Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)
#### Post date: [November 20, 2020, 3:54pm UTC](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751/2 "2020-11-20T15:54:29Z")

</div>

You need to tweak the amount of workers and the DB buffer. So, the options you would need to tweak would be:

- `db_shared_buffers`
- `UNICORN_WORKERS`

Here you can see the estimates of usage per Unicorn

> [@Normal RAM Usage](https://meta.discourse.org/t/normal-ram-usage/50630/5):
>
> Yes, that’s normal. What you can do is tune down the unicorn workers number. In one instance I have: 280MB per unicorn worker 200MB sidekiq 180MB unicorn master I guess going from 4 workers to 2 can shave you some memory. PS: I’m assuming that you are running a ghost town, when you get more users revisit this.

Discourse is able to run with 512MB of RAM its not a good experience but it’s possible. You _issue_ is that Discourse reviews the server (as the whole node) resources and plans the resource usage to take advantage of as most resources as possible because Discourse makes the assumption it will run alone.

---

_[View the full topic](https://meta.discourse.org/t/how-much-ram-is-needed-to-host-discourse-along-with-other-services/170751)._
