Chapter 15: Performance Testing and Tuning an Application

Overview

So far we've talked a lot about performance and scalability at a theoretical level. In this chapter we'll take a more practical look at how to avoid common causes of performance problems, and how to address any performance problems before they prove costly to a project.

We'll look at basic performance and scalability concepts, and why performance and scalability are critical considerations throughout the project lifecycle. If we ignore these issues until an application is functionally complete (a common mistake) we are courting disaster.

We'll look at the importance of an empirical approach to meeting performance requirements, and how we can gather the necessary evidence by load testing and profiling key application functionality. We'll look at tools for load testing web applications and ordinary Java classes, and the JProbe profiler.

We'll look at techniques for addressing any performance problems identified through testing and profiling. We'll consider how to ensure efficient use of J2EE container services, the benefits (and potential problems with) caching frequently used data, and code-level optimizations.

We'll illustrate these techniques, and use of the performance testing tools discussed in this chapter, by analyzing and improving the performance of one of the key use cases of the ticketing sample application. We'll look at why ensuring satisfactory performance in distributed applications is a special challenge, and how we can overcome it by minimizing the overhead of remote method invocation.

We'll also consider some performance issues relating to web applications. We'll look at benchmarks of some of the alternative view technologies discussed in Chapter 13. We'll see how we may be able to minimize load on web applications by using HTTP headers to enable proxy and browser caching.

Finally, we'll look at some common causes of performance and scalability problems in J2EE applications, enabling us to avoid making costly mistakes.



Expert One-on-One J2EE Design and Development
Microsoft Office PowerPoint 2007 On Demand
ISBN: B0085SG5O4
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net