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