Memory Aquired by Java String & HashMap memory size in java with UTF-8 string

Viewed 28

I have a hashmap in java which is type of <String,String>. My requirement is i want to know how much memory it is taking in my system. Please consider below details as well.

String Type is : UTF-8

MapType: HashMap<String, String>=new HashMap();

lenght of Map is: 7200000 (72 lacks key value pair)

Avg Length of key is : 75 (example: IUCC_SESSION_IUCC_SESSION_CALL_SUCC_-1102343625_2022-09-20T18:45:41.000000Z)

The length of the value is : 5 (example: VALUE)

Thanks in advance.

0 Answers
Related