Tomcat responds with HTTP 503

I hosted my application and did some stress tests, I noticed that while polling 50 requests at the same time, the server responds to HTTP 503.

What does it mean? Could there be some specific configuration limiting the number of requests from Tomcat?

Thanks.

+4
source share
4 answers

This usually means that you have run out of threads to process the request. You can try increasing maxThreads in the Tomcat server.xml file, or if you use the Apache HTTP server as an interface, you may need to configure your connector to allow more connections.

+5
source

Status 503 indicates that the request processing service is unavailable.

Currently, the server cannot process the request due to temporary overload or server maintenance.

- HTTP specification 503

You will see this from time to time if you use Tomcat for Apache and Apache acts as a proxy. If Apache cannot contact Tomcat, it will return a 503 response.

+2
source

Have you checked the Tomcat log files located in the installation directory in the logs? (Often they offer a lot of information. Look for a WARNING or SERIOUS line.)

0
source

If you use Apache httpd as the front-end, you can check if a firewall exists between Tomcat and Apache. After disabling the firewall on the Tomcat machine in our environment, 503 errors disappeared.

See also this .

The above document also describes other less decisive ways to solve problem 503 when using a firewall.

0
source

Source: https://habr.com/ru/post/1390513/


All Articles