This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch note-about-docker-ulimit
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit b41c527a99f5933c5db002598e20d17112a838aa
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Sun Jun 22 14:46:23 2025 -0400

    Document how to mitigate high memory usage in docker
    
    Thanks to @joan-morera for proving the answer in #4926
---
 src/docs/src/install/troubleshooting.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/docs/src/install/troubleshooting.rst 
b/src/docs/src/install/troubleshooting.rst
index fc3b0986d..f8d13eefd 100644
--- a/src/docs/src/install/troubleshooting.rst
+++ b/src/docs/src/install/troubleshooting.rst
@@ -228,6 +228,16 @@ unlimited. A detailed discussion can be found on the 
erlang-questions list,
 but the short answer is that you should decrease ``ulimit -n`` or lower the
 ``vm.args`` parameter ``+Q`` to something reasonable like 1024.
 
+The same issue can be manifested in some docker configurations which default
+ulimit max files to ``unlimited``. In those cases it's also recommended to set
+a lower ``nofile`` ulimit, something like 65536. In docker compose files that
+can be done as:
+
+.. code-block:: yaml
+
+    ulimits:
+      nofiles: 65535
+
 Function raised exception (Cannot encode 'undefined' value as JSON)
 -------------------------------------------------------------------
 If you see this in the CouchDB error logs, the JavaScript code you are using

Reply via email to