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

ExcellentSurvey issues and possible resolutions

In this section, we will discuss each of our findings using source code inspection and discuss how to fix the different performance issues identified.

Tip

At this moment, you can try to scan the code of the identified performance issues and do your own analysis and possible resolutions, and then compare your results with our results.

You may review our fixing strategy as well from Chapter 8, Memory Profiling.

Fixing the EmailSender.sendEmail() HotSpot method

The issue here is clear that the application hangs while waiting for a response from the mail server. What we can do here is push mail sending as an asynchronous operation, so that our application responds back to the user and the mail is sent in ...

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