Coder Social home page Coder Social logo

Comments (2)

sergey-safarov avatar sergey-safarov commented on June 21, 2024

Before the issue was used 170Mb of swap memory

image

from couchdb.

nickva avatar nickva commented on June 21, 2024

I don't typically run CouchDB in a docker container so this all speculative advice.

A few things to try:

  • Adjusting couchjs process setting, lower their number with https://docs.couchdb.org/en/stable/config/query-servers.html#query_server_config/os_process_limit. Make the hard limit say 75 and soft limit 25. The default is 100 I think.

  • Try lowering max_dbs_open. The default is 500 so maybe try making it 400 or 300.

  • When running in docker, Erlang VM doesn't always do a good job auto-detecting the CPU quotas so it would start a scheduler thread for each core on the host machine. So try lowering the number of schedulers artificially in vm.args with +S 4:4, for example to use only 4 schedulers. The number of schedulers should match your CPU quota.

  • Erlang VM has more advanced memory management settings. There is one to use a max amount of heap, so if you have a way to test it out on a test cluster first, try something like:
    vm.args:

+MMscs 4096
+Musac false
+MMsco true

That sets the super-carrier to 4GB max. Again, I haven't tried running with those settings but someone reported some success with that: https://elixirforum.com/t/running-elixir-with-limited-heap-size/23633/13

from couchdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.