Malloc Can Double Multi-threaded Ruby Program Memory Usage

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 #program https://rubyonrails.ba/single/malloc-can-double-multi-threaded-ruby-program-memory-usage

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles