YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it
问题 The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's retained memory is A bytes (600mb) expand and sum the retained size for the underlying instances let's say the sum is B (300mb) A >> B 回答1: Let me give you an example. First of all, you need to understand what retained size is. From the official