https://bz.apache.org/bugzilla/show_bug.cgi?id=58721
Bug ID: 58721
Summary: Http11Nio2Protocol is leaking open file handles for
TCP connections
Product: Tomcat 8
Version: 8.0.28
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
Assignee: [email protected]
Reporter: [email protected]
Recently switched to Tomcat 8.0.28 and Http11Nio2Protocol and after a week the
service failed with java.net.SocketException: "Too many open files".
After restarting the server I monitored the open files and saw the TCP
connections grow and grow:
# lsof -u tomcat -a -i TCP
After the restart there were 10-20 open files, the list changing rapidly.
After one day there were 250+ open files, most were unchanging.
The keep alive timeout is set to 10 seconds, they should have all been closed
within those 10 seconds.
I switched back to Http11NioProtocol and after two days there are no hanging
open files, every time i check I see 10-20 open files and they get closed and
new ones opened.
Here was the Connector setting:
<Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol"
connectionTimeout="20000"
keepAliveTimeout="10000"
scheme="https" secure="true"
SSLEnabled="true" sslProtocol="TLS"
sslEnabledProtocols="TLSv1.2,TLSv1.1,TLSv1"
keystoreFile="${catalina.base}/conf/productcodes.keystore"
keystorePass="xxx"
keyAlias="tomcat"
keyPass="xxx"
useServerCipherSuitesOrder="true"
ciphers="TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]