<html><body bgcolor="#FFFFFF"><div>Php-fpm handles the children automatically. No need for the environment vars.&nbsp;<br><br>On Jan 14, 2009, at 9:06 AM, "Ilan Berkner" &lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Thanks for the advice, I will research.<br><br>
<div class="gmail_quote">On Wed, Jan 14, 2009 at 11:56 AM, Olivier Bonvalet <span dir="ltr">&lt;<a href="mailto:nginx.list@daevel.fr"><a href="mailto:nginx.list@daevel.fr">nginx.list@daevel.fr</a></a>></span> wrote:<br>
<blockquote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid" class="gmail_quote">Hello,<br><br>if you use a wrapper for PHP with for exemple "export PHP_FCGI_CHILDREN=16", then the opcode cache will be shared between 16 php instances.<br>
<br>If you have 4 or more CPU, you should try to use "xcache" instead of "apc" (and don't forget to adjust the xcache.count parameter), which give much better results for us (about 75% faster in high load).<br>
<br>Good luck,<br>Olivier<br><br>Joe Aston a écrit :<br>
<blockquote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid" class="gmail_quote">
<div class="Ih2E3d">I seem to remember using PHP APC with FastCGI was a bad idea because php-cgi processes couldn't share the same cache - they all required their own unique caches.<br><br>How many php-cgi processes are you running?<br>
<br></div>
<div class="Ih2E3d">On Wed, Jan 14, 2009 at 4:14 PM, Ilan Berkner &lt;<a href="mailto:iberkner@gmail.com" target="_blank"><a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a></a> &lt;mailto:<a href="mailto:iberkner@gmail.com" target="_blank"><a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a></a>>> wrote:<br>
<br>&nbsp; &nbsp;Does anyone have specific or "generic" optimization guidelines for<br>&nbsp; &nbsp;running Nginx in the following configuraiton?<br>&nbsp; &nbsp; &nbsp; &nbsp;- Dedicated Nginx server (1)<br>&nbsp; &nbsp;- PHP FPM<br>&nbsp; &nbsp;- FastCgi<br>&nbsp; &nbsp; &nbsp; &nbsp;- Dedicated DB Server<br>
&nbsp; &nbsp;- MySQL<br>&nbsp; &nbsp; &nbsp; &nbsp;Traffic on our site is increasing and I noticed that CPU<br>&nbsp; &nbsp;utilization on our Nginx server is going over 50%, primarily to<br>&nbsp; &nbsp;php-cgi processes. &nbsp;We are optimizing php using APC.<br>&nbsp; &nbsp; &nbsp; &nbsp;Any suggestions would be greatly appreciated (additional<br>
&nbsp; &nbsp;information can be provided).<br>&nbsp; &nbsp; &nbsp; &nbsp;Thanks<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br><br></div></blockquote><br><br></blockquote></div><br>
</div></blockquote></body></html>