Have one to sell? Sell yours here
Java Platform Performance: Strategies and Tactics
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java Platform Performance: Strategies and Tactics [Paperback]

Steve Wilson , Jeff Kesselman
5.0 out of 5 stars  See all reviews (1 customer review)

Available from these sellers.


Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Plus, get an extra £5 Gift Certificate when you trade in books worth £10 or more before June 30, 2012. Visit the Books Trade-In Store for more details.


Product details

  • Paperback: 256 pages
  • Publisher: Prentice Hall; 1 edition (31 May 2000)
  • Language English
  • ISBN-10: 0201709694
  • ISBN-13: 978-0201709698
  • Product Dimensions: 23.5 x 18.6 x 1.2 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 1,109,176 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description

Amazon.co.uk Review

Now that Java is doing more and more in the field, improving its speed and efficiency is crucial for many working developers. Written by two Sun insiders, Java Platform Performance gives the experienced Java programmer plenty of useful strategies and tips for getting the most out of Java code.

This concise title offers plenty of concrete suggestions for improving real-world programs, but it also helps you think about performance as you design and test Java software.

A strength of this book is that the authors share their expertise, garnered from optimising the Swing classes for Sun. This text shows you how to benchmark and profile Java code and where to look for problem hot spots--and once these are solved, where to go next for even better performance. You learn how to reduce object creation and class loading, which can allow your programs to load faster and consume less memory.

Also notable here is a solution for letting multiple Java programs share a single JVM for reduced memory overhead. The authors do a good job of dismantling the notion that using the Java Native Interface (JNI) is a quick fix for better performance. They also show how memory leaks still can exist in Java, and how to find them. The book closes with a guide to Java garbage collection and the latest on Sun's HotSpot Virtual Machine.

If anything, this book will convince you that good performance in Java doesn't happen by accident. It takes planning, expertise, and plenty of testing. It will also get you thinking about performance in new ways with some excellent tips and strategies that can help you write faster and more efficient Java code. --Richard Dragan, Amazon.com

Topics covered:

  • Measuring Java performance (computational speed, RAM footprint, start-up time, scalability, perceived performance)
  • Engineering performance into the software design process
  • Benchmarking techniques (micro- and macro-benchmarks)
  • Profiling
  • Techniques to improve I/O performance
  • Reducing RAM footprint (including minimising object creation and detecting memory leaks)
  • Controlling class loading (eager class loading and patterns for reducing the number of classes)
  • Running multiple Java programs within the same virtual machine
  • Optimising String objects
  • Object mutability and performance
  • Choosing the right algorithm and data structure
  • The Java Collection classes and arrays compared
  • Four patterns for the Java Native Interface (JNI)
  • Why native code is often slower
  • Swing custom models and renderers for improved performance and scalability
  • JDK 1.3 and Swing Timers for more responsive user interfaces
  • Deployment and performance hints
  • Tutorial on Java garbage collection
  • The Java HotSpot Virtual Machine

Product Description

Direct from Sun's Java™ Performance Team, this is a comprehensive field manual full of battle-tested strategies and tactics for developing high-performance applications and applets with Java technology. It covers every aspect of Java performance, including speed, scalability, RAM footprint, startup time, and user-perceived performance factors. Part I covers the crucial process issues associated with Java optimization, outlining how performance tuning fits into the software development process, showing how to use benchmarks and profiling tools to identify hot spots and bottlenecks, and presenting general strategies for enhancing the performance of Java technology-based systems. In Part II, the authors present a wide array of concrete optimization techniques. The book contains detailed appendices on garbage collection and the Java HotSpot™ Virtual Machine, written to address key performance questions.


Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organise and find favourite items.
Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
5 of 5 people found the following review helpful
Good guide 6 Oct 2000
By A Customer
Format:Paperback
Very useful & packed with examples of real javasoft design decisions and makeovers after profiling. It tends to shy away from specific performance tips (Strings v StringBuffer excluded) such as tweak this and that instead it takes the line of "when we had problems with JTable in Swing we looked at object allocation and discovered that a hell of a lot of temporary objects were created" to paraphrase a bit ;). Other examples include don't use JNI as the overhead is too great "...much of the Math class was rewritten in java from C as it turned out faster...".

The authors even responded to a couple of queries I had.

Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  17 reviews
27 of 30 people found the following review helpful
Shallow coverage with some redeeming utility 21 Dec 2001
By Bob Carpenter - Published on Amazon.com
Format:Paperback
The table of contents is deceptive, because all of the important optimization topics are covered, including the Java-specific ones. The problem is, most of these topics are not covered in any depth beyond a simple introduction. I like terse books and believe most books about computers these days are way too fat; my hats are off to Addison Wesley for controlling that tendency with well edited books in this series. This book is thin at 230 pages, but unfortunately, a lot of that is filler of the "let me tell you what I'm going to tell you, tell you, and then tell you what I told you variety.

The advice is generally sound, such as "use a profiler to decide what to optimize", but all too often the advice stops there. One learns that linked lists are fast for deletes and array lists are fast for random access. But what if neither has the performance characteristics you need?

I would recommend Jon Bentley's "Programming Pearls" for someone who really wants to get a feel for optimization through a number of tight case studies. The examples may be C, but they're insightful and more applicable to the problems you're likely to face than the ones encountered when writing the Swing or Collections classes themselves. Then go out and use a serious optimizer like Quantify, which is essentially what the authors of this book suggest. At that point, you'll wonder why the authors stopped their review of Collections with Sun's built-in implementations.

The code for running mulitple programs and controlling class loading in Chapter 6, though I have not tried it, is interesting and something I'd not seen elsewhere. Other diversions, such as timers and threading in Swing are covered elsewhere. What would have been helpful is a detailed look at debugging threading performance, say through object, resource or thread pooling (an idea dismissed earlier for "small objects").

One glaring omission is a serious micro-benchmarking of basic operations. I found the comparison of speed when using final vs. non-final classes or methods to be startling in practice, and numbers here would help. Similarly, access times for hash tables vs. arrays, simple object construction times, floating point vs. integer arithmetic times, object variable vs. local variable access, etc. There are some wonderful micro-benchmark applets on the web with this functionality. What you'll learn is that up-casting takes forever, so any use of built-in collections/iterators for performance-critical operations will do you in.

I found the constant sales pitch for the Sun HotSpot (TM) Virtual Machine a bit tiring. It concludes with a recapitulation of the marketing materials in Appendix B. It is alternately described as "highly optimized", "state-of-the-art", having a "superior memory allocator", "ultra-fast", having "excellent multiprocessor performance characteristics", having "agressive inlining", having "excellent paging", etc. etc. The appendix devoted to HotSpot (TM) is particularly noteworty for its omission of any profiling information!

8 of 8 people found the following review helpful
Great start, straight to the point 5 Mar 2001
By A Customer - Published on Amazon.com
Format:Paperback
Although this topic could be explored a lot deeper, this is a great book to get started on Java performance. I read it, cover to cover, in a few days on the bus, back and forth to work, and it's changed my approach to coding in Java.

The first part on strategies is fundamental and cover concepts on performance. This is a must for anybody who wants to get started on the topic.

The second part on tactics goes into details about spesific issues in Java, and because of the GUI / Swing background of the authors, it is mostly focused on topics related to that. If that's what you're working on, this is a 5 star book, but since Java is becoming more and more server focused technology, it's a little bit missing for people like myself who write Servlets and JSPs.

Hopefully, there'll soon be a book that discusses performance in J2EE.

17 of 20 people found the following review helpful
Improve your Java by shedding its myths 25 Aug 2000
By Vincent O'Sullivan - Published on Amazon.com
Format:Paperback
There are a number of things everybody 'knows' about Java. Bad things such as "It's slow (but can be speeded up by calling native methods)" or good things such as "It doesn't leak memory". Unfortunately, like most things, the truth is more complicated.

Wilson and Kesselman have done an excellent job of getting under the bonnet (or hood for those in the US) of Java whilst firmly remaining practical rather than theoretical.

I bought the book because we suspected memory leakage problems in one of our applets but couldn't find much information on the subject elsewhere. The net result is that we've had our eyes opened to a number of issues we weren't aware of and have been able to tackle them with informed confidence rather than ill-educated guesswork.

A particular bonus is the information on benchmarking. So often we find we develop solutions on the basis of ease of coding rather than performance (not always bad thing). What I've found now is that I have greater confidence in both trying out different solutions and then concrete evidence with which I can justify my decisions to others.

Though not for beginners, I would reccommend this book as a good one for expanding your knowledge of how to deliver good, practical, faster and more robust Java. Being able to give sound background information on why you write a piece of code in a particular way is an important step on the way from being a developer to being a key developer.

Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback