@@ -71,6 +71,33 @@ To what size should I set the WiredTiger internal cache?
71
71
72
72
.. include:: /includes/extracts/wt-configure-cache.rst
73
73
74
+ How much memory does MongoDB allocate per connection?
75
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
+
77
+ Each connection uses up to 1 megabyte of RAM.
78
+
79
+ To optimize memory use for connections, ensure that you:
80
+
81
+ - Monitor the number of open connections to your deployment. Too many
82
+ open connections result in excessive use of RAM and reduce available
83
+ memory for the :term:`working set`.
84
+
85
+ - Close :ref:`connection pools <connection-pool-overview>` when they are
86
+ no longer needed. A connection pool is a cache of open, ready-to-use
87
+ database connections maintained by the driver. Closing unneeded pools
88
+ makes additional memory resources available.
89
+
90
+ - Manage the size of your connection pool. The :urioption:`maxPoolSize`
91
+ connection string option specifies the maximum number of open
92
+ connections in the pool. By default, you can have up to 100 open
93
+ connections in the pool. Lowering the ``maxPoolSize`` reduces the
94
+ maximum amount of RAM used for connections.
95
+
96
+ .. tip::
97
+
98
+ To configure your connection pool, see
99
+ :ref:`connection-pool-settings`.
100
+
74
101
How frequently does WiredTiger write to disk?
75
102
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
103
0 commit comments