You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by An...@bmw.de on 2013/08/12 13:19:51 UTC

[users@httpd] Problems with mod_proxy_balancer / slotmem_create @ apache 2.4.4

Hello eveybody,

since apache version 2.4.4 I have a problem by running multiple apache instances on my server. Normally we run multiple apaches, under different users, on one machine, but since 2.4.4 we have often the problem that apache is not able to reserve shared memory, because some other instance is using the same shared memory block.

The failure in the logs:


[Fri Aug 09 09:24:31.160654 2013] [:emerg] [pid 23958:tid 139658191218496] AH00020: Configuration Failed, exiting

[Fri Aug 09 11:09:46.919038 2013] [proxy_balancer:emerg] [pid 6549:tid 139675464337216] (17)File exists: AH01179: balancer slotmem_create failed



Also seen from another failure

6989  shmget(0x1038007, 537, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists)

If I now check the shared memory with "ipcs -a" I see that the segment is reserverd by another instance of another user. After waiting a couple of minutes (up to hours) the apache is then able to start, but waiting is currently not really an option!?

Currently, I'm using apache 2.4.4 with the newest open ssl and and openldap version on Suse Linux 11 SP1/2.

Is there any work around or solution available, or an idea to solve this issue?

Thanks,
André

---
BMW Group
Andre Wendel
Lösungsbau IT, Plattformen
80788 München

Tel: +49-89-382-50385
Mail:andre.wendel@bmw.de<ma...@bmw.de>
Web: http://www.bmwgroup.com/
----------------------------------------------------------
Bayerische Motoren Werke Aktiengesellschaft
Vorstand: Norbert Reithofer, Vorsitzender,
Milagros Caiña Carreiro-Andree,
Herbert Diess, Klaus Draeger, Friedrich Eichiner,
Harald Krüger, Ian Robertson, Peter Schwarzenbauer.
Vorsitzender des Aufsichtsrats: Joachim Milberg
Sitz und Registergericht: München HRB 42243
----------------------------------------------------------


AW: [users@httpd] Problems with mod_proxy_balancer / slotmem_create @ apache 2.4.4

Posted by An...@bmw.de.
Hello Rainer,

all instances have different DefaultRuntimeDirs, I have also checked problems regarding the generated *.shm and *.uid-files, but these files are definitely not the problem.

The problem here is definitely inside the shared memory of the os (command: ipcs), only if there is shared memory or semaphore reserved on the requested address the apache comes up, whether or not *.shm files are existing inside the DefaultRuntimeDir.

Regards,
André

-----Ursprüngliche Nachricht-----
Von: Rainer Jung [mailto:rainer.jung@kippdata.de] 
Gesendet: Samstag, 24. August 2013 22:34
An: users@httpd.apache.org
Betreff: Re: [users@httpd] Problems with mod_proxy_balancer / slotmem_create @ apache 2.4.4

On 12.08.2013 13:19, Andre.Wendel@bmw.de wrote:
> since apache version 2.4.4 I have a problem by running multiple apache
> instances on my server. Normally we run multiple apaches, under
> different users, on one machine, but since 2.4.4 we have often the
> problem that apache is not able to reserve shared memory, because some
> other instance is using the same shared memory block.
> 
>  
> 
> The failure in the logs:
> 
>  
> 
> [Fri Aug 09 09:24:31.160654 2013] [:emerg] [pid 23958:tid
> 139658191218496] AH00020: Configuration Failed, exiting
> 
> [Fri Aug 09 11:09:46.919038 2013] [proxy_balancer:emerg] [pid 6549:tid
> 139675464337216] (17)File exists: AH01179: balancer slotmem_create failed
> 
>  
> 
> Also seen from another failure
> 
> 6989  shmget(0x1038007, 537, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File
> exists)
> 
>  
> 
> If I now check the shared memory with "ipcs -a" I see that the segment
> is reserverd by another instance of another user. After waiting a couple
> of minutes (up to hours) the apache is then able to start, but waiting
> is currently not really an option!?
> 
>  
> 
> Currently, I’m using apache 2.4.4 with the newest open ssl and and
> openldap version on Suse Linux 11 SP1/2.
> 
>  
> 
> Is there any work around or solution available, or an idea to solve this
> issue?

Can you try DefaultRuntimeDir ?

Regards,

Rainer

-- 
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33a            Fax: 0228 98549 -50
53111 Bonn                     www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems with mod_proxy_balancer / slotmem_create @ apache 2.4.4

Posted by Rainer Jung <ra...@kippdata.de>.
On 12.08.2013 13:19, Andre.Wendel@bmw.de wrote:
> since apache version 2.4.4 I have a problem by running multiple apache
> instances on my server. Normally we run multiple apaches, under
> different users, on one machine, but since 2.4.4 we have often the
> problem that apache is not able to reserve shared memory, because some
> other instance is using the same shared memory block.
> 
>  
> 
> The failure in the logs:
> 
>  
> 
> [Fri Aug 09 09:24:31.160654 2013] [:emerg] [pid 23958:tid
> 139658191218496] AH00020: Configuration Failed, exiting
> 
> [Fri Aug 09 11:09:46.919038 2013] [proxy_balancer:emerg] [pid 6549:tid
> 139675464337216] (17)File exists: AH01179: balancer slotmem_create failed
> 
>  
> 
> Also seen from another failure
> 
> 6989  shmget(0x1038007, 537, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File
> exists)
> 
>  
> 
> If I now check the shared memory with "ipcs -a" I see that the segment
> is reserverd by another instance of another user. After waiting a couple
> of minutes (up to hours) the apache is then able to start, but waiting
> is currently not really an option!?
> 
>  
> 
> Currently, I’m using apache 2.4.4 with the newest open ssl and and
> openldap version on Suse Linux 11 SP1/2.
> 
>  
> 
> Is there any work around or solution available, or an idea to solve this
> issue?

Can you try DefaultRuntimeDir ?

Regards,

Rainer

-- 
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33a            Fax: 0228 98549 -50
53111 Bonn                     www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org