In this chapter, we saw how memory is managed with Java, and how to influence it to optimize and adapt it to your application requirements. We also saw how the Java EE server-provided resources help you save time, as they not only enable you to skip reconnection time between usages but also imply a dedicated tuning to not abuse the server memory and CPU.
The idea behind this chapter is to ensure that you have the keys and knowledge to be able to investigate any issue with memory and to be able to tune the memory and resources without being lost or using some random numbers.
Also, this part is probably the most unportable one and will be related to the JVM (for the memory) and server (for the resources) you'll use in your deployment. All the concepts will still apply but the way you tune them can differ, since this is not something standardized yet—even if the...