title: Node.js and Socket.io become unresponsive
body: <p>I have a relatively simple chat-type application running on Node.js and Socket.io. The node server streams chat data from a Minecraft server and then streams this to any clients connected on the website using Socket.io. A working demo of the system can be found here: <a href="http://standardsurvival.com/chat" rel="nofollow">standardsurvival.com/chat</a>.</p>
  
  <p>It works decently fine for the most part, but every once in a while the node server stops responding and active connections die shortly thereafter. The process will start consuming 100% CPU during this time but memory always stays relatively constant, so I'm doubting any sort of memory leak is involved.</p>
  
  <p>It's been super frustrating as I haven't been able to reproduce the issue consistently enough to figure out what the problem is, and I don't know where to look. I've been setting up loops and commenting out various parts of the pipeline between the node server and website to try and pinpoint what may be causing it. No luck as of yet.</p>
  
  <p>The code behind this system can be found <a href="https://github.com/sbezboro/standard-rts" rel="nofollow">here</a> and <a href="https://github.com/sbezboro/standard-web/blob/master/templates/chat.html" rel="nofollow">here</a>.</p>
  
  <p>Any ideas?</p>