When executing the command "netstat -na" on the Tomcat server there is an large number of connection in the state [CLOSE_WAIT]
Cause type: Configuration Root Cause: Tomcat cannot create more connections due to a system limitation.
1. Increase the number of File Descriptors (Unix systems)
The number of File Descriptors for the user that starts Tomcat has to be increased This can be done by the command "ulimit -n", for example "ulimit -n 2048" or in the file /etc/security/limits.conf (Redhat Linux, see with your Linux Admin)
2. Increase the number of threads available and the number of accepted connections on Tomcat (Unix and Windows systems)
In the file /conf/server.xml Under the tag Within the tag "Connector" increase or add (i) maxThreads (default value=200) (ii) acceptCount (default value=100)
For exemple :
WARNING: an increase of maxThread has a direct effect on the amount of memory necessary. (see https://tomcat.apache.org/tomcat-7.0-doc/config/http.html)