memory management - Java Hashmap. How many maximum records should it be used for? -
i have 10,000 mappings. idea put them in java hashmap , access ? save database transactions 10,000 records present in memory itself. every mapping have around 100 characters including key , value , mappings quite distinct. asking question since don't have great experience in java or on similar situation.
10k objects drop in bucket (pardon pun) far memory goes.
try , see, think you'll find modest memory capacity these days handle it. make sure have reasonable heap size: -xmx512m
or whatever
Comments
Post a Comment