title: How to configure MongoDB Java driver MongoOptions for production use?
body: <p>I've been searching the web looking for best practices for configuring MongoOptions for the MongoDB Java driver and I haven't come up with much other than the API. This search started after I ran into the "com.mongodb.DBPortPool$SemaphoresOut: Out of semaphores to get db 
  connection" error and by increasing the connections/multiplier I was able to solve that problem. I'm looking for links to or your best practices in configuring these options for production.</p>
  
  <p>The options for the 2.4 driver include:
  <a href="http://api.mongodb.org/java/2.4/com/mongodb/MongoOptions.html">http://api.mongodb.org/java/2.4/com/mongodb/MongoOptions.html</a></p>
  
  <ul>
  <li>autoConnectRetry</li>
  <li>connectionsPerHost</li>
  <li>connectTimeout</li>
  <li>maxWaitTime</li>
  <li>socketTimeout</li>
  <li>threadsAllowedToBlockForConnectionMultiplier</li>
  </ul>
  
  <p>The newer drivers have more options and I would be interested in hearing about those as well.</p>