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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles