Skip to Content
Troubleshooting Java, Second Edition
book

Troubleshooting Java, Second Edition

by Laurentiu Spilca
October 2025
Intermediate to advanced
360 pages
10h 23m
English
Manning Publications

Overview

Learn how to quickly work out what your Java code is doing so you can understand when and why it misbehaves.

Searching for bugs, detangling messy legacy code, or evaluating your codebase for new features sucks up much of a developer's time. Effectively reading and understanding existing code is a true superpower! Troubleshooting Java, Second Edition teaches you to efficiently analyze and debug Java applications using time-tested tools and new AI-powered techniques.

In Troubleshooting Java, Second Edition you’ll learn:

  • Efficiently use debuggers to quickly understand complex code
  • Utilize AI-driven tools to automate log analysis, trace execution, and predict problems
  • Correctly implement and interpret application logs
  • Identify performance bottlenecks and optimize slow execution paths
  • Profile SQL queries to diagnose and optimize database interactions
  • Evaluate heap dumps to detect and fix memory leaks
  • Analyze thread dumps to resolve deadlocks and concurrency issues
  • Navigate the intricacies of service-oriented and microservices systems

In Troubleshooting Java, Second Edition Java veteran Laurențiu Spilcă shares techniques for reading, profiling, debugging, and optimizing Java code that he’s honed over years working with high-stakes systems. This fully-revised second edition, updates coverage for new Java tools and adds methods for saving time and effort using AI. You’ll master techniques to identify memory leaks, optimize database queries, and resolve threading issues with ease. The code samples are in Java, but the skills you learn in this guide can be applied to any JVM language.

About the Technology
Whether you’re working with legacy systems or using AI to generate fresh programs, you’ll spend more time reading and fixing code than writing it from scratch. Troubleshooting is a messy art, and efficient profiling, logging, debugging, and optimization will save you hours of time and countless headaches.

About the Book
Troubleshooting Java, Second Edition teaches practical techniques to diagnose, debug, and optimize Java applications. You’ll learn to uncover hidden dependencies, diagnose crashes, and resolve performance issues using tools like IntelliJ IDEA Debugger, VisualVM, and Heap Dump Analyzer. This revised and updated second edition introduces AI-powered troubleshooting tools, along with techniques for modern Java and cloud-native apps.

What's Inside
  • Use debuggers to quickly understand complex code
  • Automate code analysis with AI tools
  • Implement and interpret application logs
  • Identify performance bottlenecks


About the Reader
For intermediate Java developers.

About the Author
Laurențiu Spilcă is a skilled Java and Spring developer and an experienced technology instructor. He is the author of Spring Start Here and Spring Security in Action.

Quotes
A must-read for every developer developing nontrivial Java applications.
- Vlad Mihalcea, Java Champion and author of High-Performance Java Persistence

Essential techniques leveraging both classic and AI-driven tools.
- Potito Coluccelli, Econocom

A masterclass in debugging smarter, not harder.
- Nathan Crocker, Checker Corp

Everything you need to dig deep into your Java programs, plus some promised help from AI.
- Catalin Tudose, Author of JUnit in Action, Third Edition

An excellent overview of techniques for finding issues in Java systems.
- Heinz M. Kabutz, The Java Specialists’ Newsletter

Approachable, engaging, and highly practical for real-world scenarios.
- Bruno Souza, Aura Co.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Troubleshooting Java

Troubleshooting Java

Laurentiu Spilca
Java Memory Management

Java Memory Management

Maaike van Putten, Dr. Seán Kennedy
Java Coding Problems

Java Coding Problems

Anghel Leonard
Modern Java in Action

Modern Java in Action

Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma

Publisher Resources

ISBN: 9781633435575Publisher SupportPublisher Website