If Java were inherently fast, it would’ve conquered the whole world by now, not just half of it. But there’s plenty you can do to improve Java performance, without compromising reliability or maintainability or even (in most cases) messing with architecture. Java Performance Tuning, 2nd Edition brings together an immense range of techniques -- up through Java 1.4 and now including J2EE, too.
Longtime Java performance consultant Jack Shirazi starts where any optimization process ought to begin: by helping you assess why users experience your application as slow, what to measure, and how to measure it using today’s Java profiling tools.
Next, Shirazi systematically addresses every area that can cause bottlenecks in Java performance. He covers underlying JDK issues like garbage collection and heap tuning; possible runtime optimizations; when to compile to native machine code and use native method calls; and so forth.
You’ll find detailed coverage of object creation and reuse; strings vs. arrays; exceptions, assertions, casts, and variables; loops, switches, and recursion; I/O; sorting; threading; data structures and algorithms; and much more. Shirazi’s excellent chapter on optimizing distributed application infrastructure covers everything from caching and compression to batching and stubbing; reducing messaging to (where necessary) application repartitioning. Every chapter ends with a handy Performance Checklist.
Enterprise developers will especially appreciate Shirazi’s four all-new chapters on J2EE -- ranging from servlets and JSP to EJBs, JDBC, and JMX. There’s even a discussion of optimizing Sun’s notorious Pet Store e-commerce application. Bill Camarda
Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks for Dummies, Second Edition.