Tomcat 响应 HTTP 503 [英] Tomcat responding HTTP 503

查看:78
本文介绍了Tomcat 响应 HTTP 503的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我托管了我的应用程序,并进行了一些压力测试,我注意到在并行处理大约 50 个请求时,服务器响应 HTTP 503.

I hosted my application, and doing some stress tests, I noticed that when shooting around 50 requests in parallel, the server responds HTTP 503.

这是什么意思?可能是一些特定的配置限制了来自Tomcat的请求数量?

What does this means? It may be some specific configuration limiting the number of requests from Tomcat?

谢谢.

推荐答案

这通常意味着您已经用完了线程来处理请求.您可以尝试增加 Tomcat server.xml 文件中的 maxThreads,或者如果您使用 Apache HTTP 服务器作为前端,则可能需要 配置您的连接器以允许更多连接.

That typically just means you've run out of threads to handle the request. You could try increasing the maxThreads in your Tomcat server.xml file, or if you're using Apache HTTP server as a front end, you may need to configure your Connector to allow more connections.

这篇关于Tomcat 响应 HTTP 503的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆