Malloc Can Double Multi-threaded Ruby Program Memory Usage
26-Jun-2019 2238
It’s not every day that a simple configuration change can completely solve a problem.I had a client whose Sidekiq processes were using a lot of memory - about a gigabyte each. They would start at about 300MB each, then slowly grow over the course of several hours to almost a gigabyte, where they would start to level off.I asked him to change a single environment variable: MALLOC_ARENA_MAX. “Please set it to 2.”.
Malloc Can Double Multi-threaded Ruby Program Memory Usage #ruby #rubydeveloper #rubyonrails #Malloc #Double #Multi-threaded #Program #Memory #Usage #program https://rubyonrails.ba/link/malloc-can-double-multi-threaded-ruby-program-memory-usage