You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (JIRA)" <ji...@apache.org> on 2013/10/08 07:38:53 UTC

[jira] [Commented] (TS-2267) Leaking file descriptors - no inactivity timeout set

    [ https://issues.apache.org/jira/browse/TS-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788934#comment-13788934 ] 

Zhao Yongming commented on TS-2267:
-----------------------------------

have your tried the master tree? or take a look of TS-287 , TS-1348 and TS-2107, that looks like should be fixed in the master.

> Leaking file descriptors - no inactivity timeout set
> ----------------------------------------------------
>
>                 Key: TS-2267
>                 URL: https://issues.apache.org/jira/browse/TS-2267
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core, Network
>    Affects Versions: 4.0.1
>         Environment: RHEL 6.4
>            Reporter: David Carlin
>
> We noticed a problem on two of our *forward proxy* hosts where ATS would run out of file descriptors.  Even after a host was removed from a VIP for hours, ATS would report:
> proxy.process.http.current_server_connections = 0
> proxy.process.http.current_active_client_connections = 43559
> # ss -s
> Total: 43622 (kernel 43688)
> TCP:   43632 (estab 2, closed 39553, orphaned 0, synrecv 0, timewait 87/0), ports 55
> Note that ATS reports 43559 active connections, but there are only 2 established connections on the host.  On this particular host, proxy.config.net.connections_throttle was set to 50000 so we first noticed the problem because ATS started throttling and never recovered - the host kept flapping as the connection count stayed near the throttling limit. 
> Bryan added some debugging to inactivity cop to create a log entry every time there was a connection with no inactivity timeout set - this helped confirm the issue.  He then made a patch to set a fixed 5 min timeout if there is no inactivity timeout specified - this helped stabilize the issue. 
> The only zero timeout in records.config was "proxy.config.http.transaction_active_timeout_out = 0" which is the default.  Changing this to something else did not alleviate the problem - we could still see in the debug logs that connections had no inactivity timeout set.
> We downgraded from 4.0.1 to 3.2.0 and the problem still occured in 3.2.0
> Thanks to Bryan Call for troubleshooting/patching!



--
This message was sent by Atlassian JIRA
(v6.1#6144)