<html><body bgcolor="#FFFFFF"><div>Those message only occur with pm dynamic<br><br>Sent from my iPod</div><div><br>On 27/10/2010, at 1:13 AM, "Xin Liu" &lt;<a href="mailto:liuxin84@gmail.com">liuxin84@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<div class="WordSection1"><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Even I set the pm.max_children=50, I still got lots of errors…...<o:p></o:p></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Oct 26 22:09:36.354159 [WARNING] [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 8 children, there are 0 idle, and 12 total children<o:p></o:p></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Oct 26 22:09:37.354215 [WARNING] [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 16 children, there are 0 idle, and 17 total children<o:p></o:p></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Oct 26 22:11:20.650232 [WARNING] [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 8 children, there are 1 idle, and 17 total children<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Oct 26 22:11:41.246244 [WARNING] [pool www] seems busy (you may need to increase start_servers, or min/max_spare_servers), spawning 16 children, there are 0 idle, and 21 total children</span><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:SimSun">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> Phil Bayfield [mailto:phil@techlightenment.com] <br></span><b><span style="font-size:10.0pt;font-family:SimSun">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> 2010</span><span style="font-size:10.0pt;font-family:SimSun">年<span lang="EN-US">10</span>月<span lang="EN-US">26</span>日<span lang="EN-US"> 19:07<br></span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> <a href="mailto:nginx@nginx.org"><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></a><br></span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: server performance issue<o:p></o:p></span></span></p><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN-US">Your formulas look interesting, will give them a try next time I'm doing some optimising.<o:p></o:p></span></p><div><p class="MsoNormal"><span lang="EN-US">Normally I would just make a rough guess based off req/sec, execution times etc and fine tune with ab.<o:p></o:p></span></p><div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><div><p class="MsoNormal"><span lang="EN-US">On 26 October 2010 11:58, SplitIce &lt;<a href="mailto:mat999@gmail.com"><a href="mailto:mat999@gmail.com">mat999@gmail.com</a></a>&gt; wrote:<o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">ive found that if you have no blocking functions in php, aka its CPU bound then number of&nbsp; CPU cores+1 is the most efficient. If it has mysql (most likely does) and other IO bound operations then *2 or *3 is fine. values between 20-30 are common in decent scale web servers, in fact on my i7 8gb ram I run 20, on my amd x2 4gb ram I run 15.<o:p></o:p></span></p><div><div><div><p class="MsoNormal"><span lang="EN-US">On Tue, Oct 26, 2010 at 9:52 PM, Phil Bayfield &lt;<a href="mailto:phil@techlightenment.com" target="_blank"><a href="mailto:phil@techlightenment.com">phil@techlightenment.com</a></a>&gt; wrote:<o:p></o:p></span></p></div></div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span lang="EN-US">Sorry didn't read you config before posting, you already have this. :)<o:p></o:p></span></p><div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US">You probably need to reduce the number of child processes, more is not better.<o:p></o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US">On intensive PHP applications I've found lower is better.<o:p></o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US">For example, if you have 100 concurrent connections, this doesn't mean you&nbsp;necessarily&nbsp;need 100 PHP-FPM children.<o:p></o:p></span></p></div><div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">_______________________________________________<br>nginx mailing list<br><a href="mailto:nginx@nginx.org" target="_blank"><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></a><br><a href="http://nginx.org/mailman/listinfo/nginx" target="_blank"><a href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a></a><o:p></o:p></span></p></div></blockquote></div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br><br clear="all"><br>-- <br><a href="http://thewarezscene.org" target="_blank">Warez Scene</a> <a href="http://www.nexusddl.com" target="_blank">Free Rapidshare Downloads</a><o:p></o:p></span></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>_______________________________________________<br>nginx mailing list<br><a href="mailto:nginx@nginx.org"><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></a><br><a href="http://nginx.org/mailman/listinfo/nginx" target="_blank"><a href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a></a><o:p></o:p></span></p></div><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p></div></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></span><br><span><a href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a></span><br></div></blockquote></body></html>