# 504 gateway timeout while runnning the Load Test jmeter

**URL:** <https://forum.mattermost.com/t/504-gateway-timeout-while-runnning-the-load-test-jmeter/4302>\
**Category:** Troubleshooting\
**Created:** [December 27, 2017, 6:22am UTC](https://forum.mattermost.com/t/504-gateway-timeout-while-runnning-the-load-test-jmeter/4302 "2017-12-27T06:22:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartbothub](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/smartbothub/32/1765_2.png) [@smartbothub](https://forum.mattermost.com/u/smartbothub)\
**Post date:** [December 27, 2017, 6:22am UTC](https://forum.mattermost.com/t/504-gateway-timeout-while-runnning-the-load-test-jmeter/4302/1 "2017-12-27T06:22:27Z")

</div>

I am running the login api with 500 concurrent users from jmeter

I get below error

> Response code: 504  
> Response message: Gateway Time-out

My nginx file is as shown below do I need to change this?

[https://drive.google.com/file/d/1\_XWYeqSAWZz6dtnTTCeLOEMzDwvEWwY1/view?usp=sharing](https://drive.google.com/file/d/1_XWYeqSAWZz6dtnTTCeLOEMzDwvEWwY1/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [January 2, 2018, 1:46pm UTC](https://forum.mattermost.com/t/504-gateway-timeout-while-runnning-the-load-test-jmeter/4302/2 "2018-01-02T13:46:25Z")

</div>

Generally speaking, a gateway timeout means that the server that is behind your NGINX proxy (in this case, Mattermost), is not responding to proxied requests within a reasonable amount of time.

Does the timeout only occur when your load test is running? If so, my guess is that your hardware/software configuration cannot support 500 simultaneous users. If you also see the timeout when the load tests are not running, then your NGINX config could be to blame.
