I'm currently working on a migration from Apache 2.2 to 2.4 (2.4.10). I'm facing an issue with the usage of proxy_balancer with Apache 2.4. They now require the mod_slotmem_shm.so module to work correctly.
I have added this module but i noticed that a single proxy_balancer now creates many memory shared segments on the OS. The problem is that my configuration declares many proxy_balancer (nearly 100), actually i soon as i declare more that 10 proxy balancers, i encountered this error :
[proxy_balancer:emerg] [pid 1430:tid 140583699289856] (28)No space left on device: AH01185: worker slotmem_create failed
After many investigation i finally identified that the shared memory segment is the ressource exceeded which raises that error.
On my OS (RHEL 6.4), i have the following configuration :
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 67108864
max total shared memory (kbytes) = 17179869184
min seg size (bytes) = 1
I also noticed that a single proxy_balancer creates almost 350 shm on the system.
Is it normal that a single proxy_balancer creates so many shm ?
Do i really have to increase the memory segment on my system in huge proportion to handle all my proxy_balancers ?
Am i missing something ? :)
Thanks in advance.