# 502 Bad Gateway エラー

**URL:** <https://meta.discourse.org/t/502-bad-gateway-error/194016>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2021 年 6 月 16 日午前 6:45 UTC](https://meta.discourse.org/t/502-bad-gateway-error/194016 "2021-06-16T06:45:23Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)\
**Post date:** [2021 年 6 月 19 日午後 1:28 UTC](https://meta.discourse.org/t/502-bad-gateway-error/194016/14 "2021-06-19T13:28:29Z")

</div>

VPS プロバイダーに RAM の増設について相談してください。十分な RAM があれば、スワップは不要です。  
プロセスがクラッシュしたときにコンテナを自動的に再起動するサービス監視ユーティリティ（monit など）の利用を検討することもできますが、アクティブなユーザーが増えるほど問題は悪化し、長期的にはデータベースが破損するリスクがあります。

---

_[View the full topic](https://meta.discourse.org/t/502-bad-gateway-error/194016)._
