C 2H A P T E R 2
Tuning Your Application
This chapter provides information on tuning applications for maximum performance. A complete guide to writing high performance Java and Java EE applications is beyond the scope of this document.
This chapter discusses the following topics:
■“Java Programming Guidelines” on page 27
■“Java Server Page and Servlet Tuning” on page 29
■“EJB Performance Tuning” on page 32
Java Programming Guidelines
This section covers issues related to Java coding and performance. The guidelines outlined are not specific to Enterprise Server, but are general rules that are useful in many situations. For a complete discussion of Java coding best practices, see the Java Blueprints.
Avoid Serialization and Deserialization
Serialization and deserialization of objects is a
Use StringBuffer to Concatenate Strings
To improve performance, instead of using string concatenation, use StringBuffer.append().
String objects are
27