7 Finding hidden issues using profiling techniques

This chapter covers

  • Sampling an app’s execution to find the currently executing methods
  • Observing execution times
  • Identifying SQL queries the app executes

In chapter 6, I said a profiler is a powerful tool that can show you a path when all the lights have gone out. But what we discussed was just a small part of the profiler’s capabilities. A profiler offers powerful tools for investigating an app’s execution, and learning to use these tools properly can help you in many scenarios.

In many cases, I have had to evaluate or investigate app executions for codebases I could barely read—old apps with poorly modeled code design, which some companies kept hidden in a wardrobe. In such cases, the profiler ...

Get Troubleshooting Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.