<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Apache: No space left on device: Couldn&#039;t create accept lock</title>
	<atom:link href="http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Mon, 21 May 2012 12:07:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Esneil</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-27366</link>
		<dc:creator>Esneil</dc:creator>
		<pubDate>Mon, 27 Feb 2012 15:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-27366</guid>
		<description>Thank you very much, it solved my problem in a flash...Now the question is, what kind of memory leak are we talking about here, is it a bug in perl programs. I am very worried about this, do I need to upgrade something.

Thanks again, your experience saved me the day.</description>
		<content:encoded><![CDATA[<p>Thank you very much, it solved my problem in a flash...Now the question is, what kind of memory leak are we talking about here, is it a bug in perl programs. I am very worried about this, do I need to upgrade something.</p>
<p>Thanks again, your experience saved me the day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Martinez</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-27201</link>
		<dc:creator>Brian Martinez</dc:creator>
		<pubDate>Sat, 11 Feb 2012 20:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-27201</guid>
		<description>Thanks for the help, it saved my butt! I needed to change httpd to apache in my case, however, all worked very well.</description>
		<content:encoded><![CDATA[<p>Thanks for the help, it saved my butt! I needed to change httpd to apache in my case, however, all worked very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomD</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-25578</link>
		<dc:creator>ThomD</dc:creator>
		<pubDate>Fri, 04 Nov 2011 10:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-25578</guid>
		<description>Worked like a charm for me on a CentOS 5 platform. Though I had to change command to the following:

for i in `ipcs -s &#124; awk &#039;/nobody/ {print $2}&#039;`; do { ipcrm -s $i ; } done;

I&#039;m fairly certain the above command is relatively safe, but be aware that &#039;nobody&#039; is a pretty important user at times :P</description>
		<content:encoded><![CDATA[<p>Worked like a charm for me on a CentOS 5 platform. Though I had to change command to the following:</p>
<p>for i in `ipcs -s | awk '/nobody/ {print $2}'`; do { ipcrm -s $i ; } done;</p>
<p>I'm fairly certain the above command is relatively safe, but be aware that 'nobody' is a pretty important user at times <img src='http://rackerhacker.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TiVi Mania</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23291</link>
		<dc:creator>TiVi Mania</dc:creator>
		<pubDate>Thu, 23 Jun 2011 04:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23291</guid>
		<description>Thanks for the tip, it saved so much time,
but I needed to change httpd to apache inorder for the for loop to work :)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, it saved so much time,<br />
but I needed to change httpd to apache inorder for the for loop to work <img src='http://rackerhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23026</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 24 May 2011 22:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23026</guid>
		<description>Hi,

you actually don&#039;t need a shell loop and a &quot;big&quot; awk. Just use something like this:

ipcs -s&#124;grep wwwrun&#124;cut -d\  -f2&#124;xargs -r -n 1 ipcrm -s

For more information about semaphores please take a look into the man-pages proc(5) and semget(2).

Frank</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>you actually don't need a shell loop and a "big" awk. Just use something like this:</p>
<p>ipcs -s|grep wwwrun|cut -d\  -f2|xargs -r -n 1 ipcrm -s</p>
<p>For more information about semaphores please take a look into the man-pages proc(5) and semget(2).</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JADDOG &#187; Blog Archive &#187; Django, Apache and Semaphores</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23023</link>
		<dc:creator>JADDOG &#187; Blog Archive &#187; Django, Apache and Semaphores</dc:creator>
		<pubDate>Tue, 24 May 2011 14:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-23023</guid>
		<description>[...] came across this post and found it very helpful. Start with seeing if there are left over semaphores then you # ipcs -s &#124; [...]</description>
		<content:encoded><![CDATA[<p>[...] came across this post and found it very helpful. Start with seeing if there are left over semaphores then you # ipcs -s | [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-22597</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Sun, 03 Apr 2011 18:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-22597</guid>
		<description>I came across this and this was exactly my issue with apache.  Does every process use semaphores or only ones with child/parent inter-relationships.  I ended up with this issue after doing a bunch of failover testing and I was kill -9 `pgrep -f httpd` all day.. and finally hit this..  I&#039;m wondering if any of our other servers may be coming close to hitting this limit?</description>
		<content:encoded><![CDATA[<p>I came across this and this was exactly my issue with apache.  Does every process use semaphores or only ones with child/parent inter-relationships.  I ended up with this issue after doing a bunch of failover testing and I was kill -9 `pgrep -f httpd` all day.. and finally hit this..  I'm wondering if any of our other servers may be coming close to hitting this limit?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apache: No space left on device: Couldn&#8217;t create accept lock &#124; gatorwat!</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-22588</link>
		<dc:creator>Apache: No space left on device: Couldn&#8217;t create accept lock &#124; gatorwat!</dc:creator>
		<pubDate>Sat, 02 Apr 2011 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-22588</guid>
		<description>[...] http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/   &#171; Remove Suspension Code from ALL .htaccess Files re-install Perl &amp;&amp; modules &#187; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/" rel="nofollow">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/</a>   &laquo; Remove Suspension Code from ALL .htaccess Files re-install Perl &amp;&amp; modules &raquo; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kshcsuf</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-19967</link>
		<dc:creator>kshcsuf</dc:creator>
		<pubDate>Wed, 12 Jan 2011 10:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-19967</guid>
		<description>The defaults should be available via /proc before they are changed.  

For RHEL6, they are a bit higher:

[philj@phoenix ~]$ cat /proc/sys/kernel/{msgmni,sem}
7630
250     32000   32      128

To override the defaults, edit /etc/sysctl.conf and use sysctl -p per the original post.</description>
		<content:encoded><![CDATA[<p>The defaults should be available via /proc before they are changed.  </p>
<p>For RHEL6, they are a bit higher:</p>
<p>[philj@phoenix ~]$ cat /proc/sys/kernel/{msgmni,sem}<br />
7630<br />
250     32000   32      128</p>
<p>To override the defaults, edit /etc/sysctl.conf and use sysctl -p per the original post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-19962</link>
		<dc:creator>Fabrice</dc:creator>
		<pubDate>Wed, 12 Jan 2011 09:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-19962</guid>
		<description>Simply thank you!
One question, what is the default (or how can we know the default)? Is there a command or a file where it is set by default?

Thanks again!</description>
		<content:encoded><![CDATA[<p>Simply thank you!<br />
One question, what is the default (or how can we know the default)? Is there a command or a file where it is set by default?</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohan</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-16427</link>
		<dc:creator>Mohan</dc:creator>
		<pubDate>Fri, 23 Jul 2010 08:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-16427</guid>
		<description>Thanks for the tip, it saved so much time,

but I needed to change httpd to apache inorder for the for loop to work.

for i in `ipcs -s &#124; awk &#039;/apache/ {print $2}&#039;`; do (ipcrm -s $i); 

cheers!</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, it saved so much time,</p>
<p>but I needed to change httpd to apache inorder for the for loop to work.</p>
<p>for i in `ipcs -s | awk '/apache/ {print $2}'`; do (ipcrm -s $i); </p>
<p>cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dws</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15723</link>
		<dc:creator>Dws</dc:creator>
		<pubDate>Thu, 07 Jan 2010 23:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15723</guid>
		<description>Thanks guy you are F*****´ genius 

I have to love people like you


Thnks again</description>
		<content:encoded><![CDATA[<p>Thanks guy you are F*****´ genius </p>
<p>I have to love people like you</p>
<p>Thnks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Gillette</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15682</link>
		<dc:creator>Eric Gillette</dc:creator>
		<pubDate>Thu, 31 Dec 2009 05:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15682</guid>
		<description>Well, you are a damn GENIUS!

I don&#039;t know what the heck is a semaphore is either, but I&#039;ll tell you this much -- you&#039;re idea did the trick.

This is all started as the result of modifying apache&#039;s and PHP&#039;s config (was installing PDO, PDO_MYSQL, and PDO_SQLITE), which of course botched everything.

I went back and removed PDO, et al by using pecl and that did the trick, because before that apache was generating a massive number of errors, and &quot;php -v&quot; gave me a &quot;segmentation fault&quot; so I completely backed off that idea.

There was only one thing I had to change, and I think it will answer Jenny&#039;s question above.

I&#039;m working in a debian distro, so I had to modify this line:

for i in `ipcs -s &#124; awk &#039;/httpd/ {print $2}&#039;`; do (ipcrm -s $i); done

To this instead:

for i in `ipcs -s &#124; awk &#039;/www-data/ {print $2}&#039;`; do (ipcrm -s $i); done

After that I got this (direct from error.log):

[Thu Dec 31 05:28:09 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch16 configured -- resuming normal operations

Of course that was music to my ears (er...eyes), and then I checked using &quot;ps aux &#124; grep apache2&quot; and got this:

www-data 28829  0.0  1.3  29200  8044 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28830  0.0  0.7  28808  4756 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28831  0.0  0.7  28808  4676 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28832  0.0  0.7  28808  4676 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28833  0.0  1.0  28904  6728 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28837  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28838  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28839  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28840  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
www-data 28841  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start
root     28859  0.0  0.0   1644   508 pts/0    R+   05:33   0:00 grep apache2

Naturally, I was a happy camper, and so was my client for that matter -- thanks dude! =0)</description>
		<content:encoded><![CDATA[<p>Well, you are a damn GENIUS!</p>
<p>I don't know what the heck is a semaphore is either, but I'll tell you this much -- you're idea did the trick.</p>
<p>This is all started as the result of modifying apache's and PHP's config (was installing PDO, PDO_MYSQL, and PDO_SQLITE), which of course botched everything.</p>
<p>I went back and removed PDO, et al by using pecl and that did the trick, because before that apache was generating a massive number of errors, and "php -v" gave me a "segmentation fault" so I completely backed off that idea.</p>
<p>There was only one thing I had to change, and I think it will answer Jenny's question above.</p>
<p>I'm working in a debian distro, so I had to modify this line:</p>
<p>for i in `ipcs -s | awk '/httpd/ {print $2}'`; do (ipcrm -s $i); done</p>
<p>To this instead:</p>
<p>for i in `ipcs -s | awk '/www-data/ {print $2}'`; do (ipcrm -s $i); done</p>
<p>After that I got this (direct from error.log):</p>
<p>[Thu Dec 31 05:28:09 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch16 configured -- resuming normal operations</p>
<p>Of course that was music to my ears (er...eyes), and then I checked using "ps aux | grep apache2" and got this:</p>
<p>www-data 28829  0.0  1.3  29200  8044 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28830  0.0  0.7  28808  4756 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28831  0.0  0.7  28808  4676 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28832  0.0  0.7  28808  4676 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28833  0.0  1.0  28904  6728 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28837  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28838  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28839  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28840  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
www-data 28841  0.0  0.6  28672  4220 ?        S    05:28   0:00 /usr/sbin/apache2 -k start<br />
root     28859  0.0  0.0   1644   508 pts/0    R+   05:33   0:00 grep apache2</p>
<p>Naturally, I was a happy camper, and so was my client for that matter -- thanks dude! =0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jenny</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15606</link>
		<dc:creator>jenny</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15606</guid>
		<description>I use clear command &quot;for i in `ipcs -s &#124; awk &#039;/httpd/ {print $2}&#039;`; do (ipcrm -s $i); done&quot; which can&#039;t clear semaphores</description>
		<content:encoded><![CDATA[<p>I use clear command "for i in `ipcs -s | awk '/httpd/ {print $2}'`; do (ipcrm -s $i); done" which can't clear semaphores</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ese</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15582</link>
		<dc:creator>Ese</dc:creator>
		<pubDate>Thu, 12 Nov 2009 19:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15582</guid>
		<description>Hey,

this was a lifesaver. thanks for putting it up!

E.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>this was a lifesaver. thanks for putting it up!</p>
<p>E.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15488</link>
		<dc:creator>Wim</dc:creator>
		<pubDate>Tue, 15 Sep 2009 17:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15488</guid>
		<description>Okay, this worked for me. But the question for today is: why?
What is the cause of this problem? Is it a bug in PHP or Apache?</description>
		<content:encoded><![CDATA[<p>Okay, this worked for me. But the question for today is: why?<br />
What is the cause of this problem? Is it a bug in PHP or Apache?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FractalizeR&#8217;s WebSite &#187; [Solution] Apache: No space left on device: Couldn’t create accept lock</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15323</link>
		<dc:creator>FractalizeR&#8217;s WebSite &#187; [Solution] Apache: No space left on device: Couldn’t create accept lock</dc:creator>
		<pubDate>Mon, 01 Jun 2009 11:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-15323</guid>
		<description>[...] No system restart is needed to apply changes. Just issue &#039;sysctl -p&#8216; command. The solution was found here. [...]</description>
		<content:encoded><![CDATA[<p>[...] No system restart is needed to apply changes. Just issue 'sysctl -p&#8216; command. The solution was found here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apache [emerg] (28)No space left on device: Couldn't create accept lock - Foros de CHW</title>
		<link>http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-14175</link>
		<dc:creator>apache [emerg] (28)No space left on device: Couldn't create accept lock - Foros de CHW</dc:creator>
		<pubDate>Mon, 27 Apr 2009 15:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/#comment-14175</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

