Troubleshooting Java, Second Edition
暫譯: Java 故障排除(第二版)

Spilca, Laurentiu

  • 出版商: Manning
  • 出版日期: 2025-11-18
  • 售價: $2,060
  • 貴賓價: 9.5$1,957
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1633435571
  • ISBN-13: 9781633435575
  • 相關分類: Java 程式語言
  • 尚未上市,無法訂購

相關主題

商品描述

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 Laurentiu Spilca 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

Laurentiu Spilca 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.

Table of Contents

Part 1
1 Starting to know your apps
2 Understanding your app's logic through debugging techniques
3 Finding problem root causes using advanced debugging techniques
4 Making the most of logs: Auditing an app's behavior
Part 2
5 Identifying resource consumption problems using profiling techniques
6 Finding hidden problems using profiling techniques
7 Investigating locks in multithreaded architectures
8 Investigating deadlocks with thread dumps
Part 3
9 Profiling memory-related problems
10 Investigating memory problems with heap dumps
11 Analyzing potential JVM problems with GC logs
Part 4
12 Uncovering system-level failures and service communication
problems
13 Measuring data consistency and transactions
A Tools you'll need
B Opening a project
C Recommended further reading
D Understanding Java threads
E Memory management in Java apps

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

商品描述(中文翻譯)

學習如何快速了解您的 Java 代碼在做什麼,以便您能理解何時以及為什麼它會出現問題。

尋找錯誤、理清混亂的舊代碼,或評估您的代碼庫以添加新功能,佔用了開發者大量的時間。有效地閱讀和理解現有代碼是一種真正的超能力!Troubleshooting Java, Second Edition 教您如何使用經過時間考驗的工具和新的 AI 驅動技術來高效分析和調試 Java 應用程式。

Troubleshooting Java, Second Edition 中,您將學到:

- 高效使用除錯器快速理解複雜代碼
- 利用 AI 驅動的工具自動化日誌分析、追蹤執行和預測問題
- 正確實施和解釋應用程式日誌
- 識別性能瓶頸並優化緩慢的執行路徑
- 對 SQL 查詢進行分析以診斷和優化數據庫交互
- 評估堆轉儲以檢測和修復內存洩漏
- 分析線程轉儲以解決死鎖和併發問題
- 瀏覽面向服務和微服務系統的複雜性

Troubleshooting Java, Second Edition 中,Java 老手 Laurentiu Spilca 分享了他多年在高風險系統中磨練出的閱讀、分析、調試和優化 Java 代碼的技術。這本全面修訂的第二版更新了對新 Java 工具的涵蓋,並增加了使用 AI 節省時間和精力的方法。您將掌握識別內存洩漏、優化數據庫查詢和輕鬆解決線程問題的技術。代碼範例使用 Java,但您在本指南中學到的技能可以應用於任何 JVM 語言。

關於技術

無論您是在處理舊系統還是使用 AI 生成新程序,您花在閱讀和修復代碼上的時間都會比從頭編寫代碼的時間多。故障排除是一門複雜的藝術,高效的分析、日誌記錄、調試和優化將為您節省數小時的時間和無數的頭痛。

關於本書

Troubleshooting Java, Second Edition 教您實用的技術來診斷、調試和優化 Java 應用程式。您將學會使用 IntelliJ IDEA Debugger、VisualVM 和 Heap Dump Analyzer 等工具來揭示隱藏的依賴關係、診斷崩潰和解決性能問題。這本修訂和更新的第二版引入了 AI 驅動的故障排除工具,以及現代 Java 和雲原生應用的技術。

內容概覽

- 使用除錯器快速理解複雜代碼
- 使用 AI 工具自動化代碼分析
- 實施和解釋應用程式日誌
- 識別性能瓶頸

讀者對象

針對中級 Java 開發者。

作者介紹

Laurentiu Spilca 是一位熟練的 Java 和 Spring 開發者,也是經驗豐富的技術講師。他是 Spring Start HereSpring Security in Action 的作者。

目錄

第一部分
1 開始了解您的應用程式
2 通過調試技術理解應用程式的邏輯
3 使用高級調試技術找到問題的根本原因
4 充分利用日誌:審計應用程式的行為
第二部分
5 使用分析技術識別資源消耗問題
6 使用分析技術找到隱藏的問題
7 調查多線程架構中的鎖
8 使用線程轉儲調查死鎖
第三部分
9 分析與內存相關的問題
10 使用堆轉儲調查內存問題
11 使用 GC 日誌分析潛在的 JVM 問題
第四部分
12 揭示系統級故障和服務通信問題
13 測量數據一致性和事務
A 您需要的工具
B 開啟項目
C 推薦進一步閱讀
D 理解 Java 線程
E Java 應用程式中的內存管理

購買印刷版書籍時,您將獲得 Manning 提供的免費電子書(PDF 或 ePub),以及訪問在線 liveBook 格式(及其 AI 助手,將以任何語言回答您的問題)的權限。

作者簡介

Laurentiu Spilca is a skilled Java and Spring developer and an experienced technology instructor. He is the author of Manning's Spring Start Here and Spring Security in Action.

作者簡介(中文翻譯)

Laurentiu Spilca 是一位熟練的 Java 和 Spring 開發者,以及一位經驗豐富的技術講師。他是 Manning 出版的《Spring Start Here》和《Spring Security in Action》的作者。