O'Reilly logo

Release It! by Michael T. Nygard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Resource pools can be a source of capacity-killing contention. Done well, however, they are a significant capacity enhancer. A connection pool eliminates up to 500 milliseconds from every transaction. Several strategies for connection management are available, each with benefits and drawbacks. These include the “per-page,” “per-fragment,” and hybrid models.

Caching is a double-edged sword. Done well, it will greatly increase a system’s capacity to support users. As typically practiced, caches can grow too large, cached items never get flushed, and cheap objects are cached with no benefit. Limiting cache sizes is crucial. Java developers should make use of the SoftReference objects to collaborate with the garbage collector in managing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required