Jboss Apache Modcluster无法排出活动会话

Jboss Apache Modcluster无法排出活动会话,jboss,jboss-eap-6,mod-cluster,Jboss,Jboss Eap 6,Mod Cluster,我使用JBoss EAP 6.2作为Webapplication服务器,使用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:/s

我使用JBoss EAP 6.2作为Webapplication服务器,使用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之后的活动会话将自行过期?

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

停止上下文超时

时间量,以指定的单位度量 stopContextTimeoutUnit,等待服务器完全关闭 上下文完成对可分发上下文的未决请求; 或不可分发服务器的活动会话的销毁/过期 上下文

CLI命令:

参考:

同样,如果您正在使用JDK 8,请查看此问题:

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