title: How to solve high CPU load by apache? (ubuntu+ec2)
body: <p>I'm setup a instance in Amazon EC2, a ubuntu 10.04 server running apache2, php5 and mysql.</p>
  
  <p>With less than 10 users using the system the server gets 20%, 30%, 40% of CPU load.</p>
  
  <p>Using top I see in the firsts lines:</p>
  
  <blockquote>
    <p>11121 www-data  20   0 71940  20m  11m S | 22.6 |  1.2 |  0:00.68 apache2<br>
    10108 www-data  20   0 72196  22m  12m S | 21.9 |  1.3 |  1:15.81 apache2<br>
    11122 www-data  20   0 71936  20m  11m S | 7.3  | 1.2 |  0:00.68 apache2<br>
    10111 www-data  20   0 72196  22m  12m S | 1.7  | 1.3 |  1:16.43 apache2   </p>
  </blockquote>
  
  <p>The CPU sum in this 4 lines are 53,5.</p>
  
  <p>How can I see more detailed the processes?<br>
  How can I take a look into scripts running, the times it takes, the amont of processor each one consumes?</p>
  
  <p>Thanks.</p>