blog:apache_et_les_ipc

Apache et les IPC

Parfois, lorsque qu'Apache meurt, il laisse des sémaphores :

$ ipcs
IPC status from <running system> as of Sun Mar 17 16:53:51 2013

Message Queues:
T        ID     KEY        MODE       OWNER    GROUP

Shared Memory:
T        ID     KEY        MODE       OWNER    GROUP

Semaphores:
T        ID     KEY        MODE       OWNER    GROUP
s    655360          0 --rw-------   apache   apache
s   1638401          0 --rw-------   apache   apache
s   1900546          0 --rw-------   apache   apache
s    393219          0 --rw-------   apache   apache
s    196612          0 --rw-------   apache   apache
s    196613          0 --rw-------   apache   apache
s    196614          0 --rw-------   apache   apache
s    196615          0 --rw-------   apache   apache
s    262152          0 --rw-------   apache   apache
s    196617          0 --rw-------   apache   apache

Du coup, lors du redémarrage, on voit :

[Sun Mar 17 16:53:39 2013] [error] (28)No space left on device: Cannot create SSLMutex

Pour nettoyer :

$ ipcs | awk '/^s/ { print "ipcrm -s " $2 }' | sudo sh
  • blog/apache_et_les_ipc.txt
  • Dernière modification : 2013/03/17 16:00
  • de pc