<?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>freedom blog reloaded &#187; sysadmin</title>
	<atom:link href="http://blog.peijnik.at/topics/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peijnik.at</link>
	<description>Stephan's Free Software blog</description>
	<lastBuildDate>Tue, 10 Nov 2009 18:04:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problems running PHP as a separate FastCGI process</title>
		<link>http://blog.peijnik.at/2009/04/01/running-php-as-a-separate-fastcgi-process/</link>
		<comments>http://blog.peijnik.at/2009/04/01/running-php-as-a-separate-fastcgi-process/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 11:06:35 +0000</pubDate>
		<dc:creator>stephan</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[observations]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.peijnik.at/?p=106</guid>
		<description><![CDATA[As some of you might have noticed this webserver has not been that responsive in the past few hours and I have been working hard on getting that fixed. I finally identified the problem and was able to fix it.
The root of the problem was my setup running PHP as a separate FastCGI process. Unfortunatly [...]]]></description>
			<content:encoded><![CDATA[<p>As some of you might have noticed this webserver has not been that responsive in the past few hours and I have been working hard on getting that fixed. I finally identified the problem and was able to fix it.</p>
<p>The root of the problem was my setup running PHP as a separate FastCGI process. Unfortunatly it seems as if PHP can only handle 500 requests per FastCGI process and then seems to lock up.<br />
The old setup of this site didn&#8217;t cause such problems and it seems the problem lies in not setting the <em>PHP_FCGI_CHILDREN</em> and <em>PHP_FCGI_MAX_REQUESTS</em> environment variables with the new setup.</p>
<p><span id="more-106"></span></p>
<p>I initially thought that the default values of those environment variables were safe, but they are not. As I already wrote PHP seems to lock up after 500 requests and the solution lies in changing <em>PHP_FCGI_CHILDREN</em>, which defaults to 0 (no additional processes) to something bigger than 0 (I am using 2 children to make sure I have at least one PHP process reading for answering requests at any time).<br />
Why? Quite simple, if you increase the value the PHP root process becomes some sort of manager and delegates requests to the children, as expected. However, using <em>PHP_FCGI_MAX_REQUESTS</em> it only forwards the specified number of requests to a child process before killing it and starting a new one. <strong>Problem solved</strong>.</p>
<p>Information on this behaviour can not be found in the PHP online manual, but rather at <a title="README.FastCGI @ lxr.php.net" href="http://lxr.php.net/source/php-src/sapi/cgi/README.FastCGI">http://lxr.php.net/source/php-src/sapi/cgi/README.FastCGI</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peijnik.at/2009/04/01/running-php-as-a-separate-fastcgi-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presented in H^H^H^H^HIPv6</title>
		<link>http://blog.peijnik.at/2009/03/17/presented-in-hhhhhipv6/</link>
		<comments>http://blog.peijnik.at/2009/03/17/presented-in-hhhhhipv6/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 10:49:53 +0000</pubDate>
		<dc:creator>stephan</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.peijnik.at/?p=5</guid>
		<description><![CDATA[I just wanted to let you know that this blog (actually all webpages I am hosting) are now accessiable via IPv6. Additionally, my mail-server now also accepts IPv6 SMTP and IMAP connections, allowing communication with the IPv6-world.
The setup uses SiXXs as tunnelbroker, with AMIS being the SiXXs PoP in use.
If you experience any problems with [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to let you know that this blog (actually all webpages I am hosting) are now accessiable via <a href="http://en.wikipedia.org/wiki/IPv6">IPv6</a>. Additionally, my mail-server now also accepts IPv6 SMTP and IMAP connections, allowing communication with the IPv6-world.</p>
<p>The setup uses <a href="http://www.sixxs.net">SiXXs</a> as tunnelbroker, with <a href="http://www.amis.net">AMIS</a> being the SiXXs PoP in use.<br />
If you experience any problems with the services I am providing via IPv6, please let me know, either via a comment to this article or an email to <a href="mailto:ipv6@sp-its.at">ipv6@sp-its.at</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peijnik.at/2009/03/17/presented-in-hhhhhipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
