简体   繁体   中英

Connections stuck in CLOSE_WAIT status

I have a Java application running in JBOSS EAP 6.4.5 on Linux. Over a period of time as multiple users logs in application then it become inaccessible( connection failed error ) with the warning message on. JBWEB003008: Maximum number of threads (1024) created for connector with **address * and port * .******

We have noticed is that most of the connections as in CLOSE_WAIT state. Server restart helps to resolve this issue temporary. Not sure what's causing this.

You need to increase the maximum number of threads created for a connector in EAP6. For non-native APR connectors, the maximum number of threads which a connector can handle can be defined by adding the attribute max-connections in the subsytem as:

 <subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false">
   <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="2048"/>
    ...
    </subsystem>

For APR connectors (native="true"), the max thread pool size is sized through the org.apache.tomcat.util.net.MAX_THREADS system property instead

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM