LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache semaphores (https://www.linuxquestions.org/questions/linux-software-2/apache-semaphores-688604/)

izghitu 12-05-2008 03:01 PM

apache semaphores
 
Hi,

I have a busy wordpress website

For unknown reasons the apache semaphores get full like each 1-2 days, sometimes each 6 hours and apache dies and I can't restart it until I clean the semaphores with the following command:
Code:

ipcs|grep apache|grep 0x|awk '{print $2;}'|while read a; do  ipcrm -s $a;ipcrm shm $a; done
Can someone please explain me what are these semaphores and how can I determine why they are getting full?

How do I stop them from getting full?

Thanks in advance

niknah 12-07-2008 07:11 AM

Semaphores can be created by other programs other than apache. The user shown in ipcs is not always the creator.

For apache try using...

AcceptMutex flock

...so apache doesn't use semaphores.

izghitu 12-07-2008 07:35 AM

Thanks for your reply

I will try that and report back with the results


All times are GMT -5. The time now is 05:54 PM.