You are given a performance issue in a web application; how would you approach diagnosing the problem?