4 Debugging apps remotely

This chapter covers

  • Debugging an app installed in a remote environment
  • Upskilling debugging techniques with a hands-on example

One of my friends recently had a problem where a particular part of the software he was implementing was very slow. Generally, when we have these types of performance issues, we suspect that an I/O interface is the cause (e.g., a connection to a database or reading or writing in a file). Remember from chapter 1 that such interfaces often slow down apps, so they are a likely suspect. But in my friend’s case, interfaces were not the issue.

The performance issue was caused by the simple generation of a random value (a universally unique identifier [UUID] stored in the database). The operating ...

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.