I have a created hash map which is basically collection of nested hash maps :-
Map<String, Map<KeyPOJO,ValuesPOJO>> customMap= new HashMap<String, Map<KeyPOJO,ValuesPOJO>>();
I am inserting 10,000 records in it and want to determine its memory usage i.e. its memory size after its full with 10,000 records.
Please tell me how do i get that via program without using profiling tools and 3rd party libraries.