{"action":"opened","issue":{"url":"https://api.github.com/repos/nsqio/nsq/issues/720","repository_url":"https://api.github.com/repos/nsqio/nsq","labels_url":"https://api.github.com/repos/nsqio/nsq/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/nsqio/nsq/issues/720/comments","events_url":"https://api.github.com/repos/nsqio/nsq/issues/720/events","html_url":"https://github.com/nsqio/nsq/issues/720","id":135872431,"number":720,"title":"nsqd: /stats endpoint causes runtime problems","user":{"login":"tecbot","id":194458,"avatar_url":"https://avatars.githubusercontent.com/u/194458?v=3","gravatar_id":"","url":"https://api.github.com/users/tecbot","html_url":"https://github.com/tecbot","followers_url":"https://api.github.com/users/tecbot/followers","following_url":"https://api.github.com/users/tecbot/following{/other_user}","gists_url":"https://api.github.com/users/tecbot/gists{/gist_id}","starred_url":"https://api.github.com/users/tecbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecbot/subscriptions","organizations_url":"https://api.github.com/users/tecbot/orgs","repos_url":"https://api.github.com/users/tecbot/repos","events_url":"https://api.github.com/users/tecbot/events{/privacy}","received_events_url":"https://api.github.com/users/tecbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T21:32:44Z","updated_at":"2016-02-23T21:32:44Z","closed_at":null,"body":"Hey,\r\n\r\nwe have a really strange issue in our nsq cluster. If we call the /stats route, it will causes a runtime issue in the nsqd process which will blocks other operations. The end result is that the nsqd didn't response to new incoming jobs in a reasonable time so our callers get stuck after some time also our nsqadmin can't reach the servers anymore because the call to /stats timeout. A first look in the code seems that there a lot of locks involved. Im curious whether other nsq users has seen something like this."}}