Troubleshooting Java Performance: Detecting Anti-Patterns with Open Source Tools
暫譯: Java 性能故障排除:使用開源工具檢測反模式

Erik Ostermueller

  • 出版商: Apress
  • 出版日期: 2017-10-01
  • 售價: $2,520
  • 貴賓價: 9.5$2,394
  • 語言: 英文
  • 頁數: 194
  • 裝訂: Paperback
  • ISBN: 1484229789
  • ISBN-13: 9781484229781
  • 相關分類: Java 程式語言Design Pattern
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Troubleshoot the most widespread and pernicious Java performance problems using a set of open-source and freely-available tools that will make you dramatically more productive in finding the root causes of slow performance. This is a brief book that focuses on a small number of performance anti-patterns, and you’ll find that most problems you encounter fit into one of these anti-patterns. The book provides a specific method in a series of steps referred to as the “P.A.t.h. Checklist” that encompasses persistence, alien systems, threads, and heap management. These steps guide you through a troubleshooting process that is repeatable, that you can apply to any performance problem in a Java application. This technique is especially helpful in 'dark' environments with little monitoring.

 
Performance problems are not always localized to Java, but often fall into the realms of database access and server load. This book gives attention to both of these issues through examples

showing how to identify repetitive SQL, and identify architecture-wide performance problems ahead of production rollout.  Learn how to apply load like an expert, and determine how much load to apply to determine whether your system scales. Included are walk-throughs of a dozen server-side performance puzzles that are ready to run on your own machine. Following these examples helps you learn to:

  • Assess the performance health of four main problems areas in a Java system: The P.A.t.h. Checklist presents each area with its own set of plug-it-in-now tools
  • Pinpoint the code at fault for CPU and other bottlenecks without a Java profiler
  • Find memory leaks in just minutes using heapSpank, the author's open-source leak detector utility that is freely available from heapSpank.org
The repeatable method provided in this book is an antidote to lackluster average response times that are multi-second throughout the industry. This book pro

vides a long absent, easy-to-follow, performance training regimen that will benefit anyone programming in Java. 

 
What You'll Learn
  • Avoid the 6 most common ways to mess up a load test
  • Determine the exact number of threads to dial into the load generator to test your system's scalability
  • Detect the three most common SQL performance anti-patterns
  • Measure network response times of calls to back-end systems ('alien systems')
  • Identify whether garbage collection performance is healthy or unhealthy and whether delays are caused by problems in the old or new generation, so you know which generation needs to be adjusted
Who This Book Is For
 
Intermediate and expert Java developers and architects. Java experts will be able to update their skill set with the latest and most productive, open-source Java performance tools. Intermediate Java dev

elopers are exposed to the most common performance defects that repeatedly show up in Java applications, ones that account for the bulk of slow-performing systems.  Experts and intermediates alike will benefit from the chapters on load generation.

商品描述(中文翻譯)

排除最普遍且最具破壞性的 Java 性能問題,使用一組開源且免費的工具,這將使您在找出性能緩慢的根本原因時大幅提高生產力。這是一本簡短的書,專注於少數性能反模式,您會發現大多數遇到的問題都符合這些反模式之一。這本書提供了一個具體的方法,通過一系列步驟稱為「P.A.t.h. 檢查清單」,涵蓋持久性、外部系統、執行緒和堆管理。這些步驟指導您進行可重複的故障排除過程,您可以將其應用於任何 Java 應用程式中的性能問題。這種技術在監控較少的「黑暗」環境中特別有幫助。

性能問題不僅限於 Java,還常常涉及數據庫訪問和伺服器負載。這本書通過示例關注這兩個問題,顯示如何識別重複的 SQL,並在生產部署之前識別架構範圍內的性能問題。學習如何像專家一樣施加負載,並確定施加多少負載以判斷您的系統是否可擴展。書中包含了十幾個伺服器端性能難題的逐步解說,這些難題可以在您自己的機器上運行。遵循這些示例可以幫助您學會:

- 評估 Java 系統中四個主要問題區域的性能健康狀況:P.A.t.h. 檢查清單為每個區域提供了一組即插即用的工具
- 精確定位導致 CPU 和其他瓶頸的代碼,而無需 Java 分析器
- 使用 heapSpank 這個作者的開源內存洩漏檢測工具,僅需幾分鐘即可找到內存洩漏,該工具可從 heapSpank.org 免費獲得

本書提供的可重複方法是對於整個行業中多秒的平庸平均響應時間的解藥。本書提供了一個長期缺失、易於遵循的性能訓練計劃,將使任何使用 Java 編程的人受益。

您將學到的內容:

- 避免 6 種最常見的負載測試錯誤
- 確定要調整到負載生成器的確切執行緒數量,以測試系統的可擴展性
- 檢測三種最常見的 SQL 性能反模式
- 測量對後端系統(「外部系統」)調用的網絡響應時間
- 確定垃圾回收性能是否健康,延遲是否由舊世代或新世代的問題引起,以便知道需要調整哪一代

本書的讀者對象:

中級和專業的 Java 開發人員及架構師。Java 專家將能夠用最新和最具生產力的開源 Java 性能工具更新他們的技能組。中級 Java 開發人員將接觸到在 Java 應用程式中反覆出現的最常見性能缺陷,這些缺陷佔據了性能緩慢系統的主要部分。專家和中級開發人員都將從有關負載生成的章節中受益。

最後瀏覽商品 (20)