encryption - Java Keystore.getKey() slow while Key store size Increase -


i using java key store store , retrieve encryption key.it works faster while key store size small. once key store size increased key store operation goes slow.

i working on linux platform, java version jdk_1.8. , safenet provider.

i have been facing same issue related execution speed varies different operation system platform.

jvm loads key store in memory. , having hashtable collection internal storage.

hashtable synchronized.

whenever perform operation key store, return in-memory key store not physical keystore. can confirm using ("top" - %wa section) command in linux base os.

key store using hashtable , root cause behind performance decriment.

i have solved issue loading keys keystore concurrenthashmap while initializing project. , later on, read operation performed map instead of keystore. , make sure write operation perform on both keystore , map.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -