gpt4 book ai didi

tomcat - 增加tomcat保持事件超时

转载 作者:行者123 更新时间:2023-11-28 23:15:19 27 4
gpt4 key购买 nike

我正在尝试增加我的 tomcat 服务器的超时时间。我当前的 server.xml 配置是:

<Connector port="9002"
maxHttpHeaderSize="8192"
maxPostSize="4194304"
maxThreads="150"
protocol="org.apache.coyote.http11.Http11Protocol"
executor="hybrisExecutor"
enableLookups="false"
acceptCount="100"
connectionTimeout="120000"
keepAliveTimeout="600"
disableUploadTimeout="true"
URIEncoding="UTF-8"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol = "TLS"
keystoreFile="${catalina.home}/lib/keystore"
keystorePass=""/>

但是当请求被提出时。似乎由于某种原因将 keep-alive 超时更改为 5。我的方法有什么问题吗?

Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Connection: Keep-Alive
Content-Type: application/json;charset=UTF-8
Date: Wed, 30 May 2018 16:12:27 GMT
Expires: 0
**Keep-Alive: timeout=5, max=81**
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=38E87AAAED514858A91383908307CBF1; Path="";
Secure;HttpOnly
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block

最佳答案

多个目录下有server.xml文件。有2个目录。一个带有可配置模板(/hybris/config/tomcat/conf),通过配置参数丰富,然后放入tomcat目录(/hybris/bin/platform/tomcat/conf),供ant all或ant server进程使用.

如果在platform目录下修改版本,ant all或ant server时会被覆盖。确保更改配置目录中的 server.xml。

关于tomcat - 增加tomcat保持事件超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50609570/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com