MongoDB connection pool is not working properly in Spring application
<p>We have created a Spring based application which is interacting with MongoDB as back end. We are using MongoTemplate to initiate connections.While running the application , we are experiencing connection time outs with below error,</p>

<p>com.mongodb.DBPortPool$ConnectionWaitTimeOut: Connection wait timeout after 1500 ms</p>

<p>We have changed below parameters, but no luck.</p>

<pre><code>connections-per-host
connect-timeout
max-wait-time
</code></pre>

<p>Our observation is that , whenever we experience the timeouts , nubmer of open connections remains the same all the time even before and after the timeouts.</p>

<p>Can you please help me to pin point an issue ?</p>