{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/6402","labels_url":"https://api.github.com/repos/docker/docker/issues/6402/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/6402/comments","events_url":"https://api.github.com/repos/docker/docker/issues/6402/events","html_url":"https://github.com/docker/docker/issues/6402","id":35656598,"number":6402,"title":"Proxy does not recover from errors like `too many open files`","user":{"login":"amuino","id":47512,"avatar_url":"https://avatars.githubusercontent.com/u/47512?v=3","gravatar_id":"","url":"https://api.github.com/users/amuino","html_url":"https://github.com/amuino","followers_url":"https://api.github.com/users/amuino/followers","following_url":"https://api.github.com/users/amuino/following{/other_user}","gists_url":"https://api.github.com/users/amuino/gists{/gist_id}","starred_url":"https://api.github.com/users/amuino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuino/subscriptions","organizations_url":"https://api.github.com/users/amuino/orgs","repos_url":"https://api.github.com/users/amuino/repos","events_url":"https://api.github.com/users/amuino/events{/privacy}","received_events_url":"https://api.github.com/users/amuino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/Runtime","name":"Runtime","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-13T09:25:32Z","updated_at":"2015-02-25T19:45:28Z","closed_at":"2015-02-25T19:45:28Z","body":"Under some circumstances, the system might run out of file descriptors to forward a request to the container.\r\n\r\nWhat we are seeing in this scenario is this message on the `docker.log`\r\n\r\n    2014/06/13 09:11:30 Stopping proxy on tcp/[::]:6003 for tcp/172.17.0.244:5000 (accept tcp [::]:6003: too many open files)\r\n\r\nAfter that, even if the problem with open files is solved, the proxy never recovers, even if the host and the container keep runing.\r\n\r\nThe only solution we have found is to detect the affected container and `docker restart` it.\r\n\r\nThe problem was detected with Docker 1.0 in a GCE instance when running `ab -n 1000 -c 600 http://localhost:6003` against a ruby webserver. The issue seems to be caused by the large number of TCP sockets being created (judging by the output of `lsof`)."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76040357","html_url":"https://github.com/docker/docker/issues/6402#issuecomment-76040357","issue_url":"https://api.github.com/repos/docker/docker/issues/6402","id":76040357,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T19:45:27Z","updated_at":"2015-02-25T19:45:27Z","body":"I believe there have been improvements for this and there are a bunch of other issues open surrounding the userland proxy so closing as dup"}}