This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new ef47e65de Document how to mitigate high memory usage in docker
ef47e65de is described below
commit ef47e65dedb8bb734f8bcc664c80a4a0aa46f3dc
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