THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
类 | 内存占用 |
---|---|
Hashmap Node | 3.2GB |
Hashmap Node[] | 1.2GB |
DeviceID | 48MB |
HashMap | 48MB |
Schema Entry | 4GB |
String | 2.4G |
char[] | 34.2G0G* |
总计 | 14.096GB896GB |
*java中char类型占用两个字节,长度为10的string占用20字节,外加8字节引用,4字节数组长度java中char类型占用两个字节,长度为10的string占用20字节,4字节对齐,外加8字节引用,4字节数组长度,4字节对齐