Product DescriptionPerformance 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
Identifybottlenecks 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
Covers JDK 1.4
Customer Reviews
Average Rating:
Rating: - Ups and Downs, but generally down
The book covers a wide range of topics with some decent, but out-dated examples. As a collective whole, this writing will get you thinking. However, some suggestions provided are impractical and simply not effective enough to warrant implementation. Providing pros and cons in the majority of examples provides some jewels of information and things to think about, but it does not live up to the massive amount of difficult, wordy reading involved or the overly verbose samples.
Rating: - Authoritative and practical, but not for everyone
If you are a core Java developer/architect who does performance tuning on a regular basis this should be part of your library.
Over time, this has been the most useful of the dozen or so performance books I own. It's scope is narrow - core Java tuning and it skates over the distributed computing smells that seem to be the most common cause of hot spots in today's Java apps. The author isn't afraid to describe unorthodox or ugly tricks when they can bear fruit. The custom Class object ... Read More
Rating: - A report from the field...
... or "You had a whole SECOND to reply? In MY day..."
First: if you are not a 'hardcore' Java programmer: do not bother with the rest of this review, and do not buy this book until you reach that point. It won't help enough to offset the damage it causes.
That said, a bit of context: the project I was working on that inspired me to buy a copy of this book involved a telecom system that had to handle hundreds of transactions a second, with sub-second response times (yes, in ... Read More
Rating: - Provides ideas on tactical optimization for performance gain
This book provides good ideas on tactical optimization for performance gain but could have also covered architectural patterns and process for performance optimization.
This book covers the areas of optimizing compilers, I/O, RAM footprint, small object management and deployment etc.
Next edition may also cover architectural decisions (or patterns) which are costly to reverse later. Also, coverage on processes for performance optimization will ... Read More
Rating: - Substantial and comprehensive text
(...)
This is a substantial and comprehensive text on many aspects of Java Performance characteristics, explaining the effects of Java design and coding practices, and giving advice to help the Java Programmer design, code, and optimize applications to execute efficiently. It is not a programming tutorial for the novice, but will enhance the knowledge of an experienced programmer for Java specific concepts. Its goal is to explain how to tune existing programs to improve efficiency, but the explanation ... Read More