Get 504 Gateway Timeout error


This happened before. The previous developer then created a new machine using a template built from the existing machine and that resolved the error but that error has now come back Not sure how to resolve this

asked 2 days ago72 views
1 Answer


What kind of applications are you running on EC2?
Also, is the CPU usage and memory usage of EC2 high?
I think it depends on the EC2 instance type, but if you are using a small instance type such as t2.micro, even running a simple application can cause a heavy load and cause a gateway timeout.

profile picture
answered 2 days ago
profile pictureAWS
reviewed 2 days ago
  • Hello so we are doing quite a bit on EC2. We are using EC2 to run configurable Linux servers. The backend code is all within the VM. And no not particularly high. It's been prettty consistent. We are using t2.medium. Would restarting the server resolve anything?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions