Contents
Preface ...................................................................................................................................................13
1 Overview of EnterpriseServer PerformanceTuning ..................................................................... 17
Process Overview ................................................................................................................................ 17
▼ Performance Tuning Sequence .................................................................................................. 18
Understanding Operational Requirements ..................................................................................... 19
Application Architecture ............................................................................................................ 19
Security Requirements ................................................................................................................ 21
Hardware Resources .................................................................................................................... 22
Administration ............................................................................................................................. 23
General Tuning Concepts .................................................................................................................. 23
Capacity Planning ........................................................................................................................ 24
User Expectations ........................................................................................................................ 25
Further Information ............................................................................................................................ 26
2 TuningYour Application .....................................................................................................................27
Java Programming Guidelines ........................................................................................................... 27
Avoid Serialization and Deserialization .................................................................................... 27
Java Server Page and Servlet Tuning ................................................................................................. 29
Suggested Coding Practices ........................................................................................................30
EJB Performance Tuning .................................................................................................................... 32
Goals .............................................................................................................................................. 32
Monitoring EJB Components .................................................................................................... 32
General Guidelines ...................................................................................................................... 35
Using Local and Remote Interfaces ........................................................................................... 36
Improving Performance of EJB Transactions .......................................................................... 38
Using Special Techniques ........................................................................................................... 39
3