【问题标题】:Apache Modcluster failed to drain active sessionsApache Modcluster 未能耗尽活动会话
【发布时间】:2014-12-06 07:12:31
【问题描述】:

我使用 JBoss EAP 6.2 作为 Web 应用服务器,使用 Apace Modcluster 进行负载平衡。

每当我尝试取消部署我的 web 应用程序时,都会收到以下警告

14:22:16,318 WARN  [org.jboss.modcluster] (ServerService Thread Pool -- 136) MODCLUSTER000025: Failed to drain 2 remaining active sessions from default-host:/starrassist within 10.000000.1 seconds
14:22:16,319 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 136) MODCLUSTER000021: All pending requests drained from default-host:/starrassist in 10.002000.1 seconds

取消部署需要很长时间,并且部署应用程序的 EAP 服务器组和节点变得无响应。

唯一的解决方法是重新启动整个 EAP 服务器。我的问题是,我是否可以在 EAP 或 ModCluster 中设置一个属性,以便超过 maxTimeOut 的活动会话会自行过期?

【问题讨论】:

    标签: jboss jboss-eap-6 mod-cluster


    【解决方案1】:

    要控制超时以停止上下文,您可以使用以下配置值:

    停止上下文超时

    时间量,以指定的单位衡量 stopContextTimeoutUnit,等待干净关闭 上下文(完成对可分发上下文的待处理请求; 或不可分发的活动会话的销毁/到期 语境)。

    CLI 命令:

    /profile=full-ha/subsystem=modcluster/mod-cluster-config=configuration/:write-attribute(name=stop-context-timeout,value=10)
    

    参考:Configure the mod_cluster Subsystem

    同样,如果您使用的是 JDK 8,请查看此问题:Draining pending requests fails with Oracle JDK8

    【讨论】:

      猜你喜欢
      • 2012-11-26
      • 1970-01-01
      • 1970-01-01
      • 2013-01-06
      • 2015-09-14
      • 2018-12-13
      • 2015-06-26
      • 2013-09-10
      • 2014-05-16
      相关资源
      最近更新 更多