You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeff Elsloo (JIRA)" <ji...@apache.org> on 2017/03/15 20:13:41 UTC

[jira] [Updated] (TC-197) File descriptor leak caused by NIO protocol connector

     [ https://issues.apache.org/jira/browse/TC-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Elsloo updated TC-197:
---------------------------
    Description: 
The new default configuration for Traffic Router and Tomcat is to use the {{Http11NioProtocol}} adapter over the previous {{Http11Protocol}} adapter. This is accomplished via the {{LanguidNioProtocol}} connectors specified in Tomcat's {{server.xml}}.

We observed a file descriptor leak with connections, but have not dug into the cause. We observed roughly 30-40k connections in {{CLOSE_WAIT}} which caused the machine to exhaust its file descriptors based upon configured limits. We also observed a similar growth curve on total threads, so something is not behaving and being cleaned up appropriately.

The cause could range from a bug in the {{Http11NioProtocol}} connector due to the ancient version of Tomcat we're using, tuning within the connector itself (max threads, intervals, etc), tuning within the JVM (memory, GC, etc), or at the OS level (kernel params around TCP connections, etc).

  was:
The new default configuration for Traffic Router and Tomcat is to use the {{Http11NioProtocol}} adapter over the previous {{Http11Protocol}} adapter. This is accomplished via the {{LanguidNioProtocol}} specified in Tomcat's {{server.xml}}.

We observed a file descriptor leak with connections, but have not dug into the cause. We observed roughly 30-40k connections in {{CLOSE_WAIT}} which caused the machine to exhaust its file descriptors based upon configured limits. We also observed a similar growth curve on total threads, so something is not behaving and being cleaned up appropriately.

The cause could range from a bug in the {{Http11NioProtocol}} connector due to the ancient version of Tomcat we're using, tuning within the connector itself (max threads, intervals, etc), tuning within the JVM (memory, GC, etc), or at the OS level (kernel params around TCP connections, etc).


> File descriptor leak caused by NIO protocol connector
> -----------------------------------------------------
>
>                 Key: TC-197
>                 URL: https://issues.apache.org/jira/browse/TC-197
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Router
>    Affects Versions: 2.1.0
>            Reporter: Jeff Elsloo
>
> The new default configuration for Traffic Router and Tomcat is to use the {{Http11NioProtocol}} adapter over the previous {{Http11Protocol}} adapter. This is accomplished via the {{LanguidNioProtocol}} connectors specified in Tomcat's {{server.xml}}.
> We observed a file descriptor leak with connections, but have not dug into the cause. We observed roughly 30-40k connections in {{CLOSE_WAIT}} which caused the machine to exhaust its file descriptors based upon configured limits. We also observed a similar growth curve on total threads, so something is not behaving and being cleaned up appropriately.
> The cause could range from a bug in the {{Http11NioProtocol}} connector due to the ancient version of Tomcat we're using, tuning within the connector itself (max threads, intervals, etc), tuning within the JVM (memory, GC, etc), or at the OS level (kernel params around TCP connections, etc).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)