<?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: Multithreaded Apache In Small VPS</title>
	<atom:link href="http://itkia.com/multithreaded-apache-in-small-vps/feed/" rel="self" type="application/rss+xml" />
	<link>http://itkia.com/multithreaded-apache-in-small-vps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=multithreaded-apache-in-small-vps</link>
	<description>Applications, OS, Networking, Data</description>
	<lastBuildDate>Tue, 15 May 2012 23:05:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: IT Know-It-All</title>
		<link>http://itkia.com/multithreaded-apache-in-small-vps/comment-page-1/#comment-951</link>
		<dc:creator>IT Know-It-All</dc:creator>
		<pubDate>Sun, 25 Jul 2010 05:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=57#comment-951</guid>
		<description>Good question. Looking at the &lt;a href=&quot;http://httpd.apache.org/docs/2.1/mod/mpm_common.html#threadstacksize&quot; rel=&quot;nofollow&quot;&gt;Apache documentation for ThreadStackSize&lt;/a&gt;, it says the directive &quot;sets the size of the stack (for autodata) of threads which handle client connections and call modules to help process those connections.&quot; Since CGI and FastCGI are spawned external processes I would presume that ThreadStackSize would not affect them, although setting &quot;ulimit -s&quot; for Apache &lt;strong&gt;would&lt;/strong&gt; probably inherit to the spawned processes since it is an environmental constraint where ThreadStackSize is an application control.

Unfortunately the real answer is &quot;I don&#039;t know.&quot; But other OS&#039;es have small (64k-128k) stack sizes by default, and I haven&#039;t seen anyone say that they are a problem for PHP. If I wanted to test it, I would find a way to put more that 128k on the stack. Perhaps create a large data structure and try to pass it by value (as opposed to by reference) and see if there is a stack overflow error.</description>
		<content:encoded><![CDATA[<p>Good question. Looking at the <a href="http://httpd.apache.org/docs/2.1/mod/mpm_common.html#threadstacksize" rel="nofollow">Apache documentation for ThreadStackSize</a>, it says the directive &#8220;sets the size of the stack (for autodata) of threads which handle client connections and call modules to help process those connections.&#8221; Since CGI and FastCGI are spawned external processes I would presume that ThreadStackSize would not affect them, although setting &#8220;ulimit -s&#8221; for Apache <strong>would</strong> probably inherit to the spawned processes since it is an environmental constraint where ThreadStackSize is an application control.</p>
<p>Unfortunately the real answer is &#8220;I don&#8217;t know.&#8221; But other OS&#8217;es have small (64k-128k) stack sizes by default, and I haven&#8217;t seen anyone say that they are a problem for PHP. If I wanted to test it, I would find a way to put more that 128k on the stack. Perhaps create a large data structure and try to pass it by value (as opposed to by reference) and see if there is a stack overflow error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pulponair</title>
		<link>http://itkia.com/multithreaded-apache-in-small-vps/comment-page-1/#comment-934</link>
		<dc:creator>pulponair</dc:creator>
		<pubDate>Wed, 21 Jul 2010 13:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://itkia.com/?p=57#comment-934</guid>
		<description>Hmm i wonder if the apache stacklimit (if specified via ThreadStackSize) is inheritated to a single php5-cgi prozess. 

Do you know anything about how things work together?</description>
		<content:encoded><![CDATA[<p>Hmm i wonder if the apache stacklimit (if specified via ThreadStackSize) is inheritated to a single php5-cgi prozess. </p>
<p>Do you know anything about how things work together?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

