【问题标题】:Increasing tomcat keep-alive timeout增加tomcat保持活动超时
【发布时间】:2018-11-09 14:20:15
【问题描述】:

我正在尝试增加我的 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

【问题讨论】:

    标签: tomcat timeout hybris keep-alive


    【解决方案1】:

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

    如果您在平台目录中更改版本,它们将在 ant all 或 ant server 期间被覆盖。确保更改 config 目录中的 server.xml。

    【讨论】:

      猜你喜欢
      • 2013-10-09
      • 1970-01-01
      • 1970-01-01
      • 2021-09-06
      • 2016-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多