O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

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

Selected performance issues

In this section, we will pick some performance issues and discuss them in more detail.

Unnecessary application logic

Here, the application developers usually lack a good understanding of the used framework capabilities so they use extra unnecessary logic that either produces extra database hits, memory consumption, or even processing power consumption. Such unwanted code can only be detected if it causes extra hits to resources or external calls, and the best way to detect this is to perform manual code inspection or profiling on the application.

If we open our project, ExampleTwo, we will find a lot of good examples of extra unnecessary logic, such as loading the whole collection to search for an instance inside it, where ...

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