<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>x83.net &#187; semaphores</title>
	<atom:link href="http://www.x83.net/tag/semaphores/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 09:50:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fix Apache &#8211; No space left on device: Couldn&#8217;t create accept lock</title>
		<link>http://www.x83.net/fix-apache-no-space-left-on-device-couldnt-create-accept-lock/</link>
		<comments>http://www.x83.net/fix-apache-no-space-left-on-device-couldnt-create-accept-lock/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 09:02:01 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[ipcrm]]></category>
		<category><![CDATA[ipcs]]></category>
		<category><![CDATA[kernel.sem]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[semaphores]]></category>
		<category><![CDATA[sslmutex]]></category>
		<category><![CDATA[sysctl]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=276</guid>
		<description><![CDATA[This issue is related to semaphores. To view how many semaphores you have use:
root@hal [~]# sysctl -a &#124; egrep kernel.sem\&#124;kernel.msgmni
kernel.sem = 250        32000   32      128
kernel.msgmni = 16

You can change this values by adding them in /etc/sysctl.conf and then using sysctl -p [...]]]></description>
			<content:encoded><![CDATA[<p>This issue is related to semaphores. To view how many semaphores you have use:</p>
<blockquote><p>root@hal [~]# sysctl -a | egrep kernel.sem\|kernel.msgmni<br />
kernel.sem = 250        32000   32      128<br />
<strong>kernel.msgmni = 16</strong>
</p></blockquote>
<p>You can change this values by adding them in /etc/sysctl.conf and then using sysctl -p to activate them.<br />
There is no need to reboot.</p>
<p>To remove sempahores use either one of these commands:</p>
<blockquote><p>for i in `ipcs -s | grep nobody | awk &#8216;{print $2}&#8217;`; do ipcrm -s $i; done<br />
/scripts/restartsrv_httpd</p></blockquote>
<p><strong>or in Perl</strong></p>
<blockquote><p>ipcs -s | grep nobody | perl -e &#8216;while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</p></blockquote>
<p><strong>or with xargs</strong></p>
<blockquote><p>ipcs -s | grep nobody | awk &#8216; { print $2 } &#8216; | xargs ipcrm</p></blockquote>
<p><strong>or bash style</strong></p>
<blockquote><p>for ipsemId in $(ipcs -s | grep nobody | cut -f 2 -d &#8216; &#8216;); do ipcrm $ipsemId;done </p></blockquote>
<p>Other errors :</p>
<p><em>Cannot create SSLMutex</em></p>
<p>add in httpd.conf</p>
<p><em>SSLMutex sem</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/fix-apache-no-space-left-on-device-couldnt-create-accept-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor server stats</title>
		<link>http://www.x83.net/monitor-server-stats/</link>
		<comments>http://www.x83.net/monitor-server-stats/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 08:30:56 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ipcs]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[semaphores]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=223</guid>
		<description><![CDATA[root@host [~]# watch &#8216;echo &#8220;show full processlist&#8221; &#124; mysql &#038;&#038; ipcs -a &#038;&#038; top -b &#124; head  &#038;&#038; netstat -an&#124;head -2&#124;tail -1;netstat -an&#124;grep 80&#8242; 
]]></description>
			<content:encoded><![CDATA[<blockquote><p><em><strong>root@host [~]#</strong> watch &#8216;echo &#8220;show full processlist&#8221; | mysql &#038;&#038; ipcs -a &#038;&#038; top -b | head  &#038;&#038; netstat -an|head -2|tail -1;netstat -an|grep 80&#8242; </em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/monitor-server-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
