glibc malloc arena retention vs. MALLOC_ARENA_MAX configuration
Memory Retention in Multithreaded glibc Environments In multithreaded Unix applications using glibc, the allocator creates per-thread arenas to reduce lock contention. By default, glibc may allocate up to eight arenas per CPU core on 64-bit systems. This behavior often results in Resident Set Size (RSS) growth that mimics a memory leak, as freed memory remai