Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2015-01-05 Thread Sylvain Goulmy
Thank you for your feeback, i guess i have to review the whole configuration design in the migration process and move balancer definitions in vhost section. Regards. On Tue, Dec 23, 2014 at 2:52 PM, Jim Jagielski j...@jagunet.com wrote: If migrating to 2.4, I would suggest using the method

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-23 Thread Jim Jagielski
So is the main issue the amount of shm used, right? On Dec 19, 2014, at 5:04 AM, Sylvain Goulmy sygou...@gmail.com wrote: Hi Yann, Thank you for your feedback. My configuration is currently defining 338 virtual hosts and 169 proxy balancers. The balancers are defined in the main

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-23 Thread Jim Jagielski
If migrating to 2.4, I would suggest using the method Yann describes and have each balancer defined in its own vhost section. This is because it is most likely that inheriting balancers will be deprecated/removed in later versions of httpd, simply because (1) it doesn't make sense and (2) causes

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-19 Thread Sylvain Goulmy
Hi Yann, Thank you for your feedback. My configuration is currently defining 338 virtual hosts and 169 proxy balancers. The balancers are defined in the main section. Each virtual host refers only one balancer. Here what i notice : - Apache creates one shm for each balancer - Each virtual

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-19 Thread Sylvain Goulmy
I also forgot to mention that i have set the BalancerInherit to Off before loading the balancers definition. It unfortunatly doesn't change the behaviour. Sylvain On Fri, Dec 19, 2014 at 11:04 AM, Sylvain Goulmy sygou...@gmail.com wrote: Hi Yann, Thank you for your feedback. My

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-19 Thread Yann Ylavic
Hi Sylvain, On Fri, Dec 19, 2014 at 11:04 AM, Sylvain Goulmy sygou...@gmail.com wrote: My configuration is currently defining 338 virtual hosts and 169 proxy balancers. The balancers are defined in the main section. Each virtual host refers only one balancer. Here what i notice : -

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-19 Thread Sylvain Goulmy
Yann, I did some additionnal tests with the BalancerInherit directive. If I add the directive BalancerInherit Off in the main section I still have the issue (shm saturation) if the number of virtual hosts/balancers is too important. With a single virtual host then I can access correctly to the

[users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-18 Thread Sylvain Goulmy
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

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-18 Thread Yann Ylavic
If you can manage to recompile the APR library used by your Apache 2.4 (you probably did that already since 2.4 does not seem to be the version packaged with RHEL 6.4), you can use ./configure --enable-posix-shm ... to use another shared memory mechanism than the default one (IPC SysV) which is

Re: [users@httpd] Apache 2.4 create a huge amount of shared memory segments

2014-12-18 Thread Yann Ylavic
On Fri, Dec 19, 2014 at 12:06 AM, Yann Ylavic ylavic@gmail.com wrote: If you can manage to recompile the APR library used by your Apache 2.4 (you probably did that already since 2.4 does not seem to be the version packaged with RHEL 6.4), you can use ./configure --enable-posix-shm ... to