A study of transient bottlenecks: understanding and reducing latency long-tail problem in n-tier web applications