HP-UX Programmer's Guide for Java 2

Table Of Contents
4 Performance and Tuning
Unless specified otherwise, the information in this chapter applies to both HP-UX
PA-RISC and HP-UX Itanium® Processor Family systems.
In your application design, remember that performance is designed into your
application. Don't let it be an area ignored until just prior to release.
In general, we've found these three recommendations useful for program design.
1. Maximize thread lifetimes and minimize thread creation/destruction cycles. Your
application can spend more time doing application specific work.
2. Minimize contention for shared resources to eliminate long queues waiting for
mutexes. Your application will be scalable, because it won't be serialized on one
lock.
3. Minimize creation of short-lived objects. Your application can spend more time
working rather than garbage collecting.
Our Java™ Information Library can be located at: http://www.hp.com/go/hpux-java-docs
and also provides a collection of tutorials and articles on performance tuning and other
subjects.
In addition, you may want to download HP's set of performance tools:
HPjmeter performance analysis tool
HPjconfig configuration tool for tuning HP-UX
34 Performance and Tuning