title: How to diagnose or lower "waiting" time for web content?
body: <p>I keep seeing inconsistent performance on a server of mine, and I'm finding it hard to diagnose/fix the problem. For the most part, pages load quickly, but 10-20% of the time they load very slowly. In Chrome's network tab shows "waiting" time as 99% of the lag. I've even tested loading a blank PHP page that has no output and I still see the wait time get large on 10-20% of page views.</p>
  
  <p>I've tried timing the PHP script and it is consistently low on all page views, including the ones that have long wait times. For example, I could load the blank page and it will load in 150ms, and then I load it again and it loads in 8500ms, but both times the PHP script executed in &lt;.5ms.</p>
  
  <p>Any ideas on what else could be causing this (I've tested on multiple computers/networks and am getting reports from users from around the world)?</p>