Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-05-2008, 04:01 PM   #1
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 109

Rep: Reputation: 16
apache semaphores


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:
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
Old 12-07-2008, 08:11 AM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
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 apache doesn't use semaphores.
Old 12-07-2008, 08:35 AM   #3
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 109

Original Poster
Rep: Reputation: 16
Thanks for your reply

I will try that and report back with the results


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
semaphores mmcds Linux - Newbie 4 01-03-2008 09:16 AM
semaphores and threads aenasir Programming 0 10-06-2004 10:07 PM
What is Semaphores? imsajjadali Red Hat 3 04-23-2004 02:26 AM
Semaphores help mojozoox Programming 1 01-07-2004 09:41 AM
semaphores charles_sjc Linux - Software 2 12-06-2003 01:15 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration