title: Redis Error "max number of clients reached"
body: <p>I am running a nodeJS application using forever npm module.<br>
  Node application also connects to Redis DB for cache check. Quite often the API stops working with the following error on the forever log.   </p>
  
  <pre><code>{ ReplyError: Ready check failed: ERR max number of clients reached
      at parseError (/home/myapp/core/node_modules/redis/node_modules/redis-parser/lib/parser.js:193:12)
      at parseType (/home/myapp/core/node_modules/redis/node_modules/redis-parser/lib/parser.js:303:14)
      at JavascriptRedisParser.execute (/home/myapp/ecore/node_modules/redis/node_modules/redis-parser/lib/parser.js:563:20) command: 'INFO', code: 'ERR' }
  
  </code></pre>
  
  <p>when I execute the <code>client list</code> command on the redis server it shows too many open connections. I have also set the <code>timeout = 3600</code> in my Redis configuration.<br>
  I do not have any unclosed Redis connection object on my application code.<br>
  This happens once or twice in a week depending on the application load, as a stop gap solution I am restarting the node server( it works ).   </p>
  
  <p>What could be the permanent solution in this case?</p>