Java Performance Tuning, 2/e (Paperback)

Jack Shirazi

  • 出版商: O'Reilly
  • 出版日期: 2003-01-31
  • 定價: $1,750
  • 售價: 9.0$1,575
  • 語言: 英文
  • 頁數: 600
  • 裝訂: Paperback
  • ISBN: 0596003773
  • ISBN-13: 9780596003777
  • 相關分類: Java 程式語言
  • 立即出貨(限量) (庫存=1)

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

商品描述

Performance has been an important issue for Java developers ever since the first version hit the streets. Over the years, Java performance has improved dramatically, but tuning is essential to get the best results, especially for J2EE applications. You can never have code that runs too fast.

Java Peformance Tuning, 2nd edition provides a comprehensive and indispensable guide to eliminating all types of performance problems. Using many real-life examples to work through the tuning process in detail, JPT shows how tricks such as minimizing object creation and replacing strings with arrays can really pay off in improving your code's performance.

Tuning J2EE applications bears many similarities to tuning J2SE apps, but important and specific considerations apply. For this reason, Java Performance Tuning, Second Edition includes four new chapters: a new chapter on J2EE application tuning in general followed by chapters on tuning JDBC, servlets and JSPs, and EJBs.

Java Performance Tuning offers common-sense advice about what to tune and what to leave alone, emphasizing techniques that provide big performance gains with minimal code restructuring. It gives you crucial guidance that helps you tune without destroying your program's architecture. Blindly changing things in an effort to make a program run faster is a great way to create buggy, unmaintainable code. Java Performance Tuning teaches you to work efficiently and effectively, resulting in code that is robust, maintainable, and fast.

Java Performance Tuning, Second Edition shows you how to:

  • Create a performance plan
  • Glean information about your program's behavior from profiling tools
  • Identify bottlenecks before tuning
  • Minimize the number of objects your program creates, particularly critical for J2EE applications
  • Optimize the use of strings
  • Avoid performance penalties from inefficient code
  • Improve the behavior of loops and switches
  • Optimize I/O behavior
  • Use appropriate algorithms for sorting and other common tasks
  • Use threads effectively
  • Optimize the performance of distributed systems
  • Speed up servlets and JSPs
  • Structure JDBC usage efficiently
  • Use effective design patterns to optimize EJB performance

Table of Contents

Preface

1. Introduction

2. Profiling Tools

3. Underlying JDK Improvements

4. Object Creation

5. Strings

6. Exceptions, Assertions, Casts, and Variables

7. Loops, Switches, and Recursion

8. I/O, Logging, and Console Output

9. Sorting

10. Threading

11. Appropriate Data Structures and Algorithms

12. Distributed Computing

13. When to Optimize

14. Underlying Operating System and Network Improvements

15. J2EE Performance Tuning

16. Tuning JDBC

17. Tuning Servlets and JSPs

18. Tuning EJBs

19. Further Resources

Index

商品描述(中文翻譯)

自從第一個版本問世以來,性能一直是Java開發人員關注的重要問題。多年來,Java的性能有了顯著提升,但調優對於獲得最佳結果仍然至關重要,特別是對於J2EE應用程序而言。程式碼運行得越快越好。

《Java性能調優》第二版提供了一個全面且不可或缺的指南,幫助消除各種性能問題。通過許多實際例子詳細介紹調優過程,該書展示了一些技巧,例如最小化對象創建和使用數組替換字符串,這些技巧在提高程式碼性能方面確實非常有效。

調優J2EE應用程序與調優J2SE應用程序有很多相似之處,但也有一些重要且特定的考慮因素。因此,《Java性能調優》第二版新增了四個章節:一個關於J2EE應用程序調優的概述章節,以及關於調優JDBC、servlet和JSP、以及EJB的章節。

《Java性能調優》提供了關於什麼需要調優和什麼不需要調優的常識建議,強調那些在最小程式碼重構的情況下能夠帶來巨大性能提升的技術。它給出了關鍵指導,幫助您在不破壞程式架構的情況下進行調優。盲目地更改程式碼以使程式運行更快是創建錯誤且難以維護的程式碼的好方法。《Java性能調優》教導您高效且有效地工作,從而編寫出健壯、易於維護且高效的程式碼。

《Java性能調優》第二版向您展示如何:




  • 創建性能計劃


  • 使用性能分析工具從程式碼行為中獲取信息


  • 在進行調優之前識別瓶頸


  • 最小化程式碼創建的對象數量,對於J2EE應用程序尤其重要


  • 優化字符串的使用


  • 避免因程式碼效率低下而產生性能懲罰


  • 改善循環和開關的行為


  • 優化I/O行為


  • 選擇適當的排序算法和其他常見任務


  • 有效使用線程


  • 優化分佈式系統的性能


  • 加速servlet和JSP


  • 高效結構化使用JDBC


  • 使用有效的設計模式優化EJB性能

目錄

前言

1. 簡介

2. 性能分析工具

3. JDK的底層改進

4. 對象創建

5. 字符串

6. 異常、斷言、轉型和變量

7. 循環、開關和遞歸

8. I/O、日誌和控制台輸出

9. 排序

10. 線程

11. 適當的數據結構和算法

12. 分佈式計算

13. 何時進行優化

14. 底層操作系統和網絡改進

15. J2EE性能調優

16. 調優JDBC

17. 調優servlet和JSP

18. 調優EJB

19. 更多資源

索引