Advertisement

Troubleshooting Java Performance

Detecting Anti-Patterns with Open Source Tools

  • Erik Ostermueller

Table of contents

  1. Front Matter
    Pages i-xxvi
  2. Getting Started with Performance Tuning

    1. Front Matter
      Pages 1-1
    2. Erik Ostermueller
      Pages 3-9
    3. Erik Ostermueller
      Pages 11-23
    4. Erik Ostermueller
      Pages 25-32
  3. Creating Load Scripts and Load Testing

    1. Front Matter
      Pages 33-33
    2. Erik Ostermueller
      Pages 35-45
    3. Erik Ostermueller
      Pages 47-56
    4. Erik Ostermueller
      Pages 57-66
    5. Erik Ostermueller
      Pages 67-103
  4. The P.A.t.h. Checklist and Performance Troubleshooting

    1. Front Matter
      Pages 105-105
    2. Erik Ostermueller
      Pages 107-115
    3. Erik Ostermueller
      Pages 117-129
    4. Erik Ostermueller
      Pages 131-139
    5. Erik Ostermueller
      Pages 141-159
    6. Erik Ostermueller
      Pages 161-186
    7. Erik Ostermueller
      Pages 187-189
  5. Back Matter
    Pages 191-194

About this book

Introduction

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 exa
mples 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 prov
ides a long absent, easy-to-follow, performance training regimen that will benefit anyone programming in Java. 

What You Will 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

Keywords

Database performance Server load Server-side performance heapSpank Load testing Response time SQL performance Network performance Garbage collection Glowroot jmap jstack JMeter

Authors and affiliations

  • Erik Ostermueller
    • 1
  1. 1.Little RockUSA

Bibliographic information

Industry Sectors
Finance, Business & Banking
Electronics
IT & Software
Telecommunications
Energy, Utilities & Environment
Aerospace