简体   繁体   中英

Cassandra row cache size discrepancy

In cassandra.yaml I configured the row_cache_size_in_mb: 1920

On startup the log says the cache is initialized with 1920mb. But the JMX interface says RowCacheCapacityInMB as 1024mb . Why this discrepancy?

I took a look at the code and this is the reason.

The max size can be only 1024MB . They use an old version of concurrentlrucache library , which limits the capacity to 1024MB.

Unfortunately , I can't use a newer version of the library because of the method signature mismatch, unless I make a custom build of cassandra

This was fixed in the 1.1.1 release: https://issues.apache.org/jira/browse/CASSANDRA-4150 ; you should upgrade.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM