<div class="gmail_quote">On 26 October 2010 12:36, Ilan Berkner <span dir="ltr">&lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><br></div><div>You could also profile your php application using xdebug and view the resulting files using a grind tool to determine where php is spending most of its time.  Profiling will most definitely crash your application, especially since you&#39;re already seeing 100% CPU utilization but you can run it for a short period of time and review the resulting grind files.</div>
<div><div class="h5"><div><br></div></div></div></blockquote><div><br></div><div>You can set in the ini:</div><div><br></div><div><div>xdebug.profiler_enable=0</div><div>xdebug.profiler_enable_trigger=1</div></div><div><br>
</div><div>Then add XDEBUG_PROFILE to any URL to profile it.</div><div><br></div><div>Webgrind is a nice grind viewer: <a href="http://code.google.com/p/webgrind/">http://code.google.com/p/webgrind/</a></div><div><br></div>
<div>It would be a really bad idea to run either of these on a production server, especially one that&#39;s under high load, the profiling process is incredibly resource intensive.</div></div>