我正在尝试增加我的tomcat服务器上的超时。我目前的服务器.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
多个目录中有服务器.xml文件。有 2 个目录。一个带有可配置模板(/hybris/config/tomcat/conf(,这些模板使用配置参数进行丰富,然后放入tomcat目录(/hybris/bin/platform/tomcat/conf(以便在ant-all或ant服务器进程中使用。
如果对平台目录中的版本进行更改,它们将在 ant all 或 ant 服务器期间被覆盖。确保在配置目录中更改服务器.xml。