cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Tyler <>
Subject Cassandra Out of Memory on startup while reading cache
Date Mon, 22 Jul 2013 17:40:40 GMT

Since upgrading from 1.1.9 to 1.2.6 over the last week, we've had two instances where cassandra
was unable, but kept trying to restart:

 INFO [main] 2013-07-19 16:12:36,769 (line 140) reading saved cache /var/cassandra/caches/SyncCore-CommEvents-KeyCache-b.db
ERROR [main] 2013-07-19 16:12:36,966 (line 458) Exception encountered
during startup
java.lang.OutOfMemoryError: Java heap space
        at org.apache.cassandra.utils.ByteBufferUtil.readWithLength(
        at org.apache.cassandra.service.CacheService$KeyCacheSerializer.deserialize(
        at org.apache.cassandra.cache.AutoSavingCache.loadSaved(
        at org.apache.cassandra.db.ColumnFamilyStore.<init>(
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
        at org.apache.cassandra.db.Table.initCf(
        at org.apache.cassandra.db.Table.<init>(
        at org.apache.cassandra.service.CassandraDaemon.setup(
        at org.apache.cassandra.service.CassandraDaemon.activate(
        at org.apache.cassandra.service.CassandraDaemon.main(
 INFO [main] 2013-07-19 16:12:43,288 (line 118) Logging initialized

This is new behavior with 1.2.6.

Stopping cassandra, moving the offending file, then starting cassandra does succeed.

Any config suggestions (key cache config?) to prevent this from happening?




View raw message