# How to resolve HTTP 502 error?

**URL:** <https://meta.discourse.org/t/how-to-resolve-http-502-error/109118>\
**Category:** Support\
**Created:** [February 14, 2019, 6:29am UTC](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118 "2019-02-14T06:29:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [February 14, 2019, 12:57pm UTC](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118/3 "2019-02-14T12:57:34Z")

</div>

How big is your database? You should have enough ram to hold the entire database in cache.

There are settings in the yml file for tuning memory usage. If you run `discourse-setup` it attempts to set them but you might need to tweak them.

Were you running Discourse somewhere else with similar traffic and didn’t have these problems?

---

_[View the full topic](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118)._
