# "Random" 502 Errors

**URL:** <https://meta.discourse.org/t/random-502-errors/121330>\
**Category:** Self-hosting\
**Created:** [June 25, 2019, 9:55pm UTC](https://meta.discourse.org/t/random-502-errors/121330 "2019-06-25T21:55:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 25, 2019, 9:59pm UTC](https://meta.discourse.org/t/random-502-errors/121330/2 "2019-06-25T21:59:20Z")

</div>

It could be that Postgres needs a bit more memory. You’ve got plenty, so you might bump `db_shared_buffers` to 1024MB. You might also bump `db_work_mem` to 80MB.

---

_[View the full topic](https://meta.discourse.org/t/random-502-errors/121330)._
