Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Performance Tuning Guide

- Previous: Declare Method Arguments final
- Next: Use DataHandlers for SOAP Attachments

### Synchronize Only When Necessary

Do not synchronize code blocks or methods unless synchronization is required. Keep synchronized blocks or methods as short as possible to avoid scalability bottlenecks. Use the Java Collections Framework for unsynchronized data structures instead of more expensive alternatives such as`java.util.HashTable`.

- Previous: Declare Method Arguments final
- Next: Use DataHandlers for SOAP Attachments

- © 2010, Oracle Corporation and/or its affiliates