November 2022
Intermediate to advanced
146 pages
3h 16m
English
In the previous chapter, we examined how to configure and monitor memory management in the JVM. This involved knowledge of the metrics relevant to the tuning of the JVM. We discussed how to obtain these metrics and, consequently, how to tune the JVM. We also examined how to use profiling to obtain insights into the effects of tuning.
This chapter focuses on memory leaks. We will examine memory leaks under the following headings:
Let us start with understanding memory leaks. After that, we will learn how to spot them in our code and see how to avoid and solve them.
The code for this chapter can be found on GitHub at https://github.com/PacktPublishing/B18762_Java-Memory-Management ...