title: File uploads slower than user's network upload speed on Apache (EC2)
body: <p>I have an EC2 instance running a basic LAMP stack as a webserver.  Users can upload photos through my web application which are then stored in a directory and recorded in MySQL.  Typically these upload as fast as a user's internet upload speed allows.</p>
  
  <p>Unfortunately, multiple users have been reporting that sometimes photo uploads are slowing down - taking up to 2 minutes per photo, while on other sites the users are able to upload much faster.</p>
  
  <p>How can I optimize Apache (I'm assuming it's Apache?) to not become a bottleneck?  Could this issue be resolved with MPM Preforking?  Or is it possibly a database locking issue?</p>
  
  <hr>
  
  <p>Some additional stats of this setup (it's pretty vanilla):</p>
  
  <p><code>Instance Type: t2.small
  EBS-optimized: False
  PHP v5.4
  Server version: Apache/2.4.18 (Amazon)
  </code></p>
  
  <p>The only other thing that I'm considering relevant is that when a photo is uploaded, it's resized via Imagick to a thumbnail size (which is obviously a bit CPU intensive, but normally it's quite fast).</p>