High Memory Usage with large number of object in java
I have the below sample code which loop for 50 Million time and create objects of MyDataHolder
. MyDataHolder
has two variants one is hashmap based and the other is variable based. see (MyDataHolder_map
and MyDataHolder_variable
)