Troubleshooting Java, Second Edition

you own this product
Laurențiu Spilcă
Foreword by Ben Evans
  • October 2025
  • ISBN 9781633435575
  • 360 pages
  • printed in black & white
  • available in Russian
free previous edition eBook included

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
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.

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.
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Troubleshooting Java, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Troubleshooting Java, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Troubleshooting Java, Second Edition ebook for free