liveBook · Manning

Chapter 4: Debugging apps remotely

What you will learn in chapter 4 of Troubleshooting Java: Read, debug, and optimize JVM applications

The introduction explains why environment-specific problems may require remote debugging, using entropy-related slowness as an example.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction explains why environment-specific problems may require remote debugging, using entropy-related slowness as an example.

Key terms: remote debugging, remote environment, entropy, random values, virtualized environment, UUID

4.1 What is remote debugging?

This section explains remote debugging, why environment differences make it useful, and why it must not be used in production.

Key terms: remote debugging, outside environment, development environment, dev, user acceptance test environment, UAT, production environment, prod, environments, configuration files

4.2 Investigating in remote environments

This section introduces a remote-debugging scenario and previews starting an app and attaching a debugger.

4.2.1 The scenario

The section sets up a UAT-only missing-data problem that motivates remote debugging and explains how the example simulates a remote environment locally.

Key terms: UAT environment, HTTP response status code, 200 OK, logs, remote debugger, localhost, IP address, DNS name

4.2.2 Finding issues in remote environments

This section configures remote debugging and uses it to find the cause of a database-related failure.

Key terms: debugger agent, -agentlib:jdwp, transport=dt_socket, server=y, address=*:5005, suspend=n, suspend=y, remote debugging configuration, IP address, port

4.3 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 3: Finding problem root causes using advanced debugging techniques Chapter 5: Making the most of logs: Auditing an app’s behavior →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.