Server-Side Programming Techniques (Java(TM) Performance and Scalability, Volume 1)

2.8 avg rating
( 5 ratings by Goodreads )
 
9780201704297: Server-Side Programming Techniques (Java(TM) Performance and Scalability, Volume 1)

Performance is now the area where Java is being put to the test, offering ever greater competitive advantage for those who master it. In this book, one of the world's leading software optimization experts presents 48 lessons that address virtually every aspect of Java server-side performance, Java Performance and Scalability, Volume I proves that, through careful attention to underlying source code and program design, the Java programming language can meet and exceed developers' greatest expectations. Dov Bulka targets the most common and critical Java performance pitfalls, offering dozens of practical tips and solutions covering each performance-critical area. Bulka has done the hard work of digging deep into the JDK to understand Java performance in unprecedented depth. This book includes not only code examples, but actual measurements quantifying the improvements they deliver. Coverage includes strings, containers, numerics, I/O, RMI, JDBC, servlets, JSP, and much more -- including a complete case study that walks through improving the performance of a Web server by a full order of magnitude.

"synopsis" may belong to another edition of this title.

Review:

Written for the working programmer who wants to get more speed out of Java, Java Performance and Scalability, Volume 1 bundles several dozen tips for faster and smaller Java code. Backed up by benchmarks of what works and what doesn't, this book provides essential wisdom for eliminating some common bottlenecks to Java performance.

The 48 optimizations for various aspects of the Java API make up the heart of this text. Early sections look at a particularly tricky subject--string processing--giving you several techniques for increasing speed and reducing object creation. The in-depth examination of the costs and benefits of string concatenation and the immutability of Java String objects will help you uncover possible hot spots that cause lagging performance with strings.

Subsequent sections look at more general strategies for faster programs, like purging obsolete code, and the well-known 80-20 rule (optimizing the 20 percent of your code that consumes 80 percent of processing time, allowing you to create faster software; this book shows you how). Short tips on such APIs as Java collections and the Java Native Interface (JNI) come next.

The second half of the book zeros in on better server-side performance with tips on caching and file I/O. The guide to multithreading and synchronization is a standout here. You'll get several smart tips for speeding up servlets, such as precomputing your standard strings for headers and other boilerplate HTML. The book closes with a valuable custom class for JDBC database connection pooling and a custom HTTP server. Both samples make use of the techniques presented earlier in the text. Even if you don't adopt every suggestion, the ideas here can get you thinking about performance in new ways. (One of the main points of this book is that you can write faster custom code, instead of always relying on built-in Java classes and APIs.)

Clearly, Java performance is not something that happens by accident; it must be engineered into your code. This compilation of useful techniques and tips deserves a close look by anyone who wants to squeeze more performance out of Java. --Richard Dragan

Topics covered:

  • Introduction to Java performance
  • More efficient Java string handling (optimizing String, StringBuffer, and StringTokenizer objects)
  • Reducing Java overhead
  • Faster initialization
  • The 80-20 rule for optimization
  • Getting rid of obsolete code
  • Speeding up the JDK 1.1 Vector and Hashtable collection classes
  • Caching techniques
  • Optimizing file I/O and buffering
  • Object recycling and object pools
  • Techniques for multithreading and synchronization
  • Amdahl's law and scalability basics
  • Pros and cons of using the Java Native Interface (JNI)
  • Hints for optimizing Remote Invocation Method (RIM) calls
  • Performance hints for servlets and JavaServer Pages (JSPs)
  • Custom sample code for JDBC database connection pooling and a Java HTTP server

From the Back Cover:

This book was written with one goal in mind: to provide Java programmers with the expertise needed to build efficient, scalable Java code. The author shares his experience in server-side performance tuning through measured performance assessments, called optimizations. Each optimization discusses techniques to improve the performance and scalability of your code. Every claim is substantiated with hard numbers and an experience-based evaluation. Java™ Performance and Scalability, Volume 1, provides invaluable advice that you will, no doubt, find useful in your coding.

Presented in 48 concise lessons that target the most common and critical performance pitfalls, this book offers a plethora of practical tips and solutions for boosting the performance of your programs. These lessons cover performance-critical areas such as memory management, garbage collection, caching, and multithreading.

Specific lessons include:

  • Reserving StringBuffer capacity
  • Avoiding premature object creation
  • Creating an efficient vector class
  • Designing caching into your API
  • The cost of synchronization
  • Parallel subtasks
  • JNI efficiency
  • Varying the server workload and RMI network plumbing
  • Using ServletOutputStream
  • Caching JDBC™ connections

    In addition to providing hard numbers that quantify the optimizations, the author concludes the book with an application demonstrating the effectiveness of the performance optimizations. The exercise takes a typical program and increases its performance fourfold through a series of steps that tie together the lessons learned throughout the book. He offers both the means and the proof to better coding.



    0201704293B04062001
  • "About this title" may belong to another edition of this title.

    Top Search Results from the AbeBooks Marketplace

    1.

    Bulka, Dov
    Published by Addison-Wesley Professional 2000-06-02 (2000)
    ISBN 10: 0201704293 ISBN 13: 9780201704297
    New PAPERBACK Quantity Available: 1
    Seller:
    The Book Cellar, LLC
    (Nashua, NH, U.S.A.)
    Rating
    [?]

    Book Description Addison-Wesley Professional 2000-06-02, 2000. PAPERBACK. Book Condition: New. 0201704293 BRAND NEW. A portion of your purchase of this book will be donated to non-profit organizations. Over 1,000,000 satisfied customers since 1997! We ship daily M-F. Choose expedited shipping (if available) for much faster delivery. Delivery confirmation on all US orders. Bookseller Inventory # Z0201704293ZN

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    US$ 3.50
    Convert Currency

    Add to Basket

    Shipping: US$ 4.00
    Within U.S.A.
    Destination, Rates & Speeds

    2.

    Dov Bulka
    Published by Addison-Wesley (2000)
    ISBN 10: 0201704293 ISBN 13: 9780201704297
    New Paperback First Edition Quantity Available: 1
    Seller:
    Irish Booksellers
    (Rumford, ME, U.S.A.)
    Rating
    [?]

    Book Description Addison-Wesley, 2000. Paperback. Book Condition: New. book. Bookseller Inventory # M0201704293

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    US$ 23.47
    Convert Currency

    Add to Basket

    Shipping: FREE
    Within U.S.A.
    Destination, Rates & Speeds

    3.

    Bulka, Dov
    Published by Addison-Wesley Professional (2000)
    ISBN 10: 0201704293 ISBN 13: 9780201704297
    New Paperback Quantity Available: 2
    Seller:
    Murray Media
    (North Miami Beach, FL, U.S.A.)
    Rating
    [?]

    Book Description Addison-Wesley Professional, 2000. Paperback. Book Condition: New. Never used!. Bookseller Inventory # P110201704293

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    US$ 32.73
    Convert Currency

    Add to Basket

    Shipping: US$ 1.99
    Within U.S.A.
    Destination, Rates & Speeds