cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7171) Startup Cassandra and encountered java.lang.OutOfMemoryError: Java heap space
Date Tue, 06 May 2014 14:32:15 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990687#comment-13990687
] 

Brandon Williams commented on CASSANDRA-7171:
---------------------------------------------

Sounds like your key cache was written when you had a much larger heap (and thus keycache
size) and that's what's causing the OOM.

> Startup Cassandra and encountered java.lang.OutOfMemoryError: Java heap space
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7171
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7171
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: windows 2008
> cassandra 2.0.0
> jre 1.7
>            Reporter: liguosheng
>
> canssdra.log:
> INFO 15:06:44,665 Data files directories: [../../../../cassandra_data]
> INFO 15:06:44,665 Commit log directory: ../../../../cassandra_data/commitlog
> INFO 15:06:44,665 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
> INFO 15:06:44,665 disk_failure_policy is stop
> INFO 15:06:44,758 Global memtable threshold is enabled at 247MB
> INFO 15:06:45,039 Not using multi-threaded compaction
> INFO 15:06:45,507 Initializing key cache with capacity of 37 MBs.
> INFO 15:06:45,538 Scheduling key cache save to each 14400 seconds (going to save all
keys).
> INFO 15:06:45,538 Initializing row cache with capacity of 0 MBs
> INFO 15:06:45,554 Scheduling row cache save to each 0 seconds (going to save all keys).
> INFO 15:06:45,819 Initializing system.schema_triggers
> INFO 15:06:45,913 Initializing system.batchlog
> INFO 15:06:45,913 Initializing system.peer_events
> INFO 15:06:45,928 Initializing system.compactions_in_progress
> INFO 15:06:45,928 Opening ..\..\..\..\cassandra_data\system\compactions_in_progress\system-compactions_in_progress-ja-1772
(42 bytes)
> INFO 15:06:45,928 Opening ..\..\..\..\cassandra_data\system\compactions_in_progress\system-compactions_in_progress-ja-1773
(42 bytes)
> INFO 15:06:45,928 Opening ..\..\..\..\cassandra_data\system\compactions_in_progress\system-compactions_in_progress-ja-1771
(252 bytes)
> INFO 15:06:46,022 Initializing system.hints
> INFO 15:06:46,037 Initializing system.schema_keyspaces
> INFO 15:06:46,037 Opening ..\..\..\..\cassandra_data\system\schema_keyspaces\system-schema_keyspaces-ja-37
(266 bytes)
> INFO 15:06:46,069 Initializing system.range_xfers
> INFO 15:06:46,069 Initializing system.schema_columnfamilies
> INFO 15:06:46,069 Opening ..\..\..\..\cassandra_data\system\schema_columnfamilies\system-schema_columnfamilies-ja-37
(5979 bytes)
> INFO 15:06:46,115 Initializing system.NodeIdInfo
> INFO 15:06:46,115 Initializing system.paxos
> INFO 15:06:46,115 Initializing system.schema_columns
> INFO 15:06:46,115 Opening ..\..\..\..\cassandra_data\system\schema_columns\system-schema_columns-ja-42
(9423 bytes)
> INFO 15:06:46,162 reading saved cache ..\..\..\..\cassandra_data\saved_caches\system-schema_columns-KeyCache-b.db
> INFO 15:06:46,162 Initializing system.IndexInfo
> INFO 15:06:46,178 Initializing system.peers
> INFO 15:06:46,178 Initializing system.local
> INFO 15:06:46,178 Opening ..\..\..\..\cassandra_data\system\local\system-local-ja-149
(5752 bytes)
> INFO 15:06:46,225 reading saved cache ..\..\..\..\cassandra_data\saved_caches\system-local-KeyCache-b.db
> INFO 15:06:47,224 Enqueuing flush of Memtable-local@714233355(114/114 serialized/live
bytes, 4 ops)
> INFO 15:06:47,224 Writing Memtable-local@714233355(114/114 serialized/live bytes, 4 ops)
> INFO 15:06:47,318 Completed flushing ..\..\..\..\cassandra_data\system\local\system-local-ja-150-Data.db
(148 bytes) for commitlog position ReplayPosition(segmentId=1399273607006, position=289)
> INFO 15:06:47,333 Initializing kairosdb.row_key_index
> INFO 15:06:47,333 Opening ..\..\..\..\cassandra_data\kairosdb\row_key_index\kairosdb-row_key_index-ja-3663
(1107026 bytes)
> INFO 15:06:47,333 Opening ..\..\..\..\cassandra_data\kairosdb\row_key_index\kairosdb-row_key_index-ja-3662
(9834029 bytes)
> INFO 15:06:47,411 reading saved cache ..\..\..\..\cassandra_data\saved_caches\kairosdb-row_key_index-KeyCache-b.db
> INFO 15:06:47,442 Initializing kairosdb.string_index
> INFO 15:06:47,442 Opening ..\..\..\..\cassandra_data\kairosdb\string_index\kairosdb-string_index-ja-3602
(96700 bytes)
> INFO 15:06:47,442 Opening ..\..\..\..\cassandra_data\kairosdb\string_index\kairosdb-string_index-ja-3601
(123957 bytes)
> INFO 15:06:47,458 reading saved cache ..\..\..\..\cassandra_data\saved_caches\kairosdb-string_index-KeyCache-b.db
> INFO 15:06:47,458 Initializing kairosdb.data_points
> INFO 15:06:47,474 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-2608
(813190770 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-2251
(3227646469 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3587
(58079087 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3302
(826655679 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-2977
(815231395 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3601
(3986479 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3545
(209800102 bytes)
> INFO 15:06:47,489 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-701
(414906383 bytes)
> INFO 15:06:48,098 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3464
(211306283 bytes)
> INFO 15:06:48,098 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-1115
(3547590516 bytes)
> INFO 15:06:48,269 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3383
(212410575 bytes)
> INFO 15:06:48,269 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3566
(57746128 bytes)
> INFO 15:06:48,332 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-722
(523682069 bytes)
> INFO 15:06:48,394 Opening ..\..\..\..\cassandra_data\kairosdb\data_points\kairosdb-data_points-ja-3600
(37086136 bytes)
> INFO 15:06:49,080 reading saved cache ..\..\..\..\cassandra_data\saved_caches\kairosdb-data_points-KeyCache-b.db
> java.lang.OutOfMemoryError: Java heap space
> Dumping heap to java_pid25432.hprof ...
> Heap dump file created [8712741 bytes in 0.099 secs]
> java.lang.OutOfMemoryError: Java heap space
> ERROR 15:06:49,392 Exception encountered during startup
> at org.apache.cassandra.utils.ByteBufferUtil.read(ByteBufferUtil.java:394)
> java.lang.OutOfMemoryError: Java heap space
> at org.apache.cassandra.utils.ByteBufferUtil.readWithLength(ByteBufferUtil.java:355)
> at org.apache.cassandra.utils.ByteBufferUtil.read(ByteBufferUtil.java:394)
> at org.apache.cassandra.service.CacheService$KeyCacheSerializer.deserialize(CacheService.java:337)
> at org.apache.cassandra.utils.ByteBufferUtil.readWithLength(ByteBufferUtil.java:355)
> at org.apache.cassandra.cache.AutoSavingCache.loadSaved(AutoSavingCache.java:147)
> at org.apache.cassandra.service.CacheService$KeyCacheSerializer.deserialize(CacheService.java:337)
> at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:267)
> at org.apache.cassandra.cache.AutoSavingCache.loadSaved(AutoSavingCache.java:147)
> at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:411)
> at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:267)
> at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:383)
> at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:411)
> at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:314)
> at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:383)
> at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:268)
> at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:314)
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:110)
> at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:268)
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:88)
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:110)
> at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:273)
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:88)
> at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:443)
> at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:273)
> at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:486)
> at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:443)
> at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:486)
> Exception encountered during startup: Java heap space
> Out enabled



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message