Java缓存库对比-以及OHCache总结

阅读: 评论:0

2024年2月8日发(作者:)

Java缓存库对比-以及OHCache总结

FieldsegmentCountMeaningNumber of segments2 * number of CPUsDefault(bleProcessors())8192.75f16 MB * number of CPUshashTableSizeloadFactorInitial size of each segment’s hash tableHash table load factor. I.e. determines when rehashing tyCapacity of the cache in bytes(bleProcessors()),minimum 64 MBchunkSizeIf set and positive, the

chunked implementation will be used and eachsegment will be divided into this amount of set and positive, the

chunked implementation with fixed sized0 - i.e.

linked implementation will be usedfixedEntrySizeentries will be used. The parameter chunkSize must be set for fixed-sized m size of a hash entry (including header, serialized key +serialized value)Throw OutOfMemoryError if off-heap allocation failsHash algorithm to use internally. Valid options are: XX for xx-hash,0 - i.e.

linked implementation will beused, if chunkSize is also 0maxEntrySize(not set, defaults to capacity divided bynumber of segments)falsethrowOOMEhashAlgorighmMURMUR3 or CRC32 Note: this setting does may only help toimprove throughput in rare situations - i.e. if the key is very long andyou’ve proven that it really improves performaceIf set to true, implementations will not perform any locking. The callingMURMUR3unlockedcode has to take care of synchronized access. In order to create aninstance for a thread-per-core implementation, set segmentCount=1, set to a value > 0, implementations supporting TTLs will tag allentries with the given TTL in number of timeouts slots for each segment - compare withhashed wheel amount of time in milliseconds for each efaultTTLmillis0timeoutsSlots64timeoutsPrecision128Default ticker using me()and tTimeMillis()No default value, recommended toprovide a default Indirection for current time - used for unit tyExpected number of elements in the cacheChoose the eviction algorithm to use. Available are:: Plain LRU - leastused entry is subject to eviction: Enable use of Window Tiny-LFU. Theevictionsize of the frequency sketch (“admission filter”) is set to the valueof hashTableSize. See for a description.: No entries will be evicted -this effectively provides a capacity-bounded off-heap ncySketchSizeedenSizeSize of the frequency sketch used bySize of the eden generation used by relative to a segment’s sizeDefaults to hashTableSize.0.2LRU

Java缓存库对比-以及OHCache总结

本文发布于:2024-02-08 12:32:03,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170736672367462.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:对比   缓存   总结
留言与评论(共有 0 条评论)
   
验证码:
排行榜

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23