Java Performance Tuning, 2/e (Paperback)
暫譯: Java 性能調優,第二版 (平裝本)

Jack Shirazi

  • 出版商: O'Reilly
  • 出版日期: 2003-01-31
  • 定價: $1,750
  • 售價: 9.5$1,663
  • 語言: 英文
  • 頁數: 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 性能調整(第二版)提供了一個全面且不可或缺的指南,以消除各種性能問題。通過許多實際案例詳細說明調整過程,JPT 展示了如何通過最小化物件創建和用陣列替換字串等技巧,實際上能顯著提升程式碼的性能。

調整 J2EE 應用程式與調整 J2SE 應用程式有許多相似之處,但也有重要且特定的考量。因此,Java 性能調整(第二版)包含了四個新章節:一個關於 J2EE 應用程式調整的一般章節,接著是調整 JDBC、servlet 和 JSP 以及 EJB 的章節。

Java 性能調整 提供了常識性的建議,告訴你該調整什麼以及該保持不變什麼,強調那些能在最小程式碼重構下提供大幅性能提升的技術。它給予你關鍵的指導,幫助你在不破壞程式架構的情況下進行調整。盲目地改變程式碼以期讓程式運行得更快,往往會導致產生錯誤且難以維護的程式碼。Java 性能調整 教你如何高效且有效地工作,最終產生穩健、可維護且快速的程式碼。

Java 性能調整(第二版)教你如何:




  • 建立性能計畫


  • 從分析工具中獲取程式行為資訊


  • 在調整之前識別瓶頸


  • 最小化程式創建的物件數量,這對 J2EE 應用程式尤其重要


  • 優化字串的使用


  • 避免因不效率的程式碼而造成的性能損失


  • 改善迴圈和開關的行為


  • 優化 I/O 行為


  • 對排序和其他常見任務使用適當的演算法


  • 有效地使用執行緒


  • 優化分散式系統的性能


  • 加速 servlets 和 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. 調整 Servlets 和 JSP

18. 調整 EJB

19. 進一步資源

索引

最後瀏覽商品 (20)