# 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:** 1

<div class="post-metadata">

**Author:** ![xuchao\_007](https://avatars.discourse-cdn.com/v4/letter/x/50afbb/32.png) [@xuchao\_007](https://meta.discourse.org/u/xuchao_007)\
**Post date:** [February 14, 2019, 6:29am UTC](https://meta.discourse.org/t/how-to-resolve-http-502-error/109118/1 "2019-02-14T06:29:20Z")

</div>

I set up discourse on a instance that contains 8GB of memory and a quad-core processor on Microsoft Azure, and I run into HTTP 502 problems these days. Especially when there are about 200 to 300 registered users visiting at the same time, the server goes wrong with HTTP 502 error. The server logs shows memory usage and CPU usage are high (above 90%) during peak times.I guess that is because each connection takes up too much resource, but I don’t know how to optimize.

So I wonder what I can do to resolve this, except upgrading hardware configurations. Thank you for any advice! 🙂

---

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