You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/10/21 03:22:56 UTC

[GitHub] wohali closed pull request #340: Add a paragraph about tuning couchjs

wohali closed pull request #340: Add a paragraph about tuning couchjs
URL: https://github.com/apache/couchdb-documentation/pull/340
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/config/query-servers.rst b/src/config/query-servers.rst
index 97191f53..b3cc7ae2 100644
--- a/src/config/query-servers.rst
+++ b/src/config/query-servers.rst
@@ -59,6 +59,15 @@ Query Servers Definition
         javascript = /usr/bin/couchjs /usr/share/couchdb/server/main.js
         coffeescript = /usr/bin/couchjs /usr/share/couchdb/server/main-coffee.js
 
+    By default, ``couchjs`` limits the max runtime allocation to 64MiB.
+    If you run into out of memory issue in your ddoc functions,
+    you can adjust the memory limitation::
+
+        [query_servers]
+        javascript = /usr/bin/couchjs -S 536870912 /usr/share/couchdb/server/main.js ; 512 MiB
+
+    For more info about the available options, please consult ``couchjs -h``.
+
     .. _Mozilla SpiderMonkey: https://developer.mozilla.org/en/docs/SpiderMonkey
 
     .. seealso::


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services