jboss关闭时未终止有界队列线程池线程

jboss关闭时未终止有界队列线程池线程,jboss,jboss7.x,threadpool,Jboss,Jboss7.x,Threadpool,我在Jboss 7.2.0 standalone.xml中创建了一个有界队列线程池,如下所示: <subsystem xmlns="urn:jboss:domain:threads:1.1"> <bounded-queue-thread-pool name="myThreadPool"> <core-threads count="6000"/> <queue-length count="1000"/> <max

我在Jboss 7.2.0 standalone.xml中创建了一个有界队列线程池,如下所示:

<subsystem xmlns="urn:jboss:domain:threads:1.1">
    <bounded-queue-thread-pool name="myThreadPool">
    <core-threads count="6000"/>
    <queue-length count="1000"/>
    <max-threads count="6000"/>
    <keepalive-time time="60" unit="seconds"/>
    </bounded-queue-thread-pool>
</subsystem>
<connector name="conn1" protocol="AJP/1.3" scheme="http" socket-binding="conn1" enabled="true" max-post-size="0" executor="myThreadPool" max-connections="2000"/>
<connector name="conn2" protocol="AJP/1.3" scheme="http" socket-binding="conn2" enabled="true" executor="myThreadPool" max-connections="2000"/>
<connector name="conn3" protocol="AJP/1.3" scheme="http" socket-binding="conn3" enabled="true" executor="myThreadPool" max-connections="2000"/>
因此,JBossAS的java进程并没有被扼杀。但是,当我简单地从
连接器
中删除
执行器
时,java进程成功终止。有人能建议我在服务器关闭时如何终止threadPool的所有线程吗

可能是您的问题的原因,设置了解决方法:

org.apache.coyote.ajp.DEFAULT_CONNECTION_TIMEOUT
将以下内容添加到
主机.xml
独立.xml
域.xml
中的
系统属性中:

<system-properties>
    <property name="org.apache.coyote.ajp.DEFAULT_CONNECTION_TIMEOUT" value="600000"/>
<system-properties>

除非我们不断地向服务器发送请求,否则这是有效的

另见:

org.apache.coyote.ajp.DEFAULT_CONNECTION_TIMEOUT
<system-properties>
    <property name="org.apache.coyote.ajp.DEFAULT_CONNECTION_TIMEOUT" value="600000"/>
<system-properties>