Microservices
Peek into memory optimization from Java garbage collection mechanism
As an Android engineer, I have read a lot of related optimization articles about Android memory leaks, most of which tell you what to do, what to do, and some specific measures. And it never explained why it was done. Today, I want to start with the mechanism behind this aspect of memory optimization, and explore the principles behind it. However, if you want to study Java's memory optimization, you must study the Java recovery mechanism. If you want to be able to understand GC basically, you mu