title: mongod.exe service memory keeps increasing , but not decrease
body: <p>We have implement Mongo Database with C# driver in asp.net application. We are facing the memory issue. The mondod.exe service keeps increase but not decrease, and automatic connection accepted and end connection.</p>
  
  <p>The below mentioned code we have implemented for the mongo db connection:</p>
  
  <pre><code>internal static MongoDatabase GetDatabase()
  {
   string con = ConfigurationManager.ConnectionStrings["MongoDBConnString"].ConnectionString;
   string databaseName = MongoUrl.Create(con).DatabaseName;
  
   MongoClient client = new MongoClient(con);
   MongoServer server = client.GetServer();
   MongoDatabase db = server.GetDatabase(databaseName);
  
   if (server != null)
    if (server.State == MongoServerState.Connected)
     server.Disconnect();
   return db;
  }
  </code></pre>
  
  <p>Please suggest how to decrease the mondod.wxe service memory. and best practice for implementation.</p>