title: How to debug node + mongo connection errors
body: <p>I am getting random connections error from my node application to a mongodb server. The node application and the mongodb database are on separate machines. It works most of the time but <em>usually</em> fails when there are a lot of queries.</p>
  
  <p>When that happens I can still run the mongo shell from the mongodb machine. And if I restart the node application, all is well again. </p>
  
  <p>I couldn't seen anything meaningful in the application log, the mongo log and the system log that leads me to some conclusion.</p>
  
  <p>I am suspecting something on the client machine side, but I couldn't find anything that made sense.</p>
  
  <p>Any lead would be appreciated.</p>