增加tomcat保持活动状态超时

bvuwiixz  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(150)

我正在尝试增加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=""/>

然而,当请求发出时,似乎由于某种原因,保持活动超时被更改为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
vxf3dgd4

vxf3dgd41#

server.xml文件在多个目录中。有两个目录。一个目录包含可配置模板(/hybris/config/tomcat/conf),这些模板包含配置参数,然后放在tomcat目录(/hybris/bin/platform/tomcat/conf)中,以便在ant all或ant server进程中使用。
如果您对平台目录中的版本进行了更改,则在执行ant all或ant server时,这些更改将被覆盖。请确保更改config目录中的server.xml。

相关问题