Discourse stuck with 504 Gateway Time-Out error and 100% CPU after rebuild

Thanks. Everything’s working now with 2GB of memory.