incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <>
Subject Re: OOM during restart
Date Tue, 21 Jun 2011 11:40:21 GMT
AFAIK the node will not announce itself in the ring until the log replay is complete, so it
will not get the schema update until after log replay. If possible i'd avoid making the schema
change until you have solved this problem.

My theory on OOM during log replay is that the high speed inserts are a good way of finding
out if the maximum memory required by the schema is too big to fit in the JVM. How big is
the max JVM Heap SIze and do you have a lot of CF's?

The simple solution it to either (temporarily) increase the JVM Heap Size or move the log
files so that the server can process only one at a time. The JVM option D.cassandra_ring=false
will stop the node from joining the cluster and stop other nodes sending requests to it until
you have sorted it out. 

Hope that helps. 
Aaron Morton
Freelance Cassandra Developer

On 21 Jun 2011, at 10:24, Gabriel Ki wrote:

> Hi,
> Cassandra: 7.6-2
> I was restarting a node and ran into OOM while replaying the commit log.  I am not able
to bring the node up again.
> DEBUG 15:11:43,501 forceFlush requested but everything is clean      <--------  For
this I don't know what to do.
> java.lang.OutOfMemoryError: Java heap space
>     at<init>(
>     at$IndexWriter.<init>(
>     at<init>(
>     at org.apache.cassandra.db.ColumnFamilyStore.createFlushWriter(
>     at org.apache.cassandra.db.Memtable.writeSortedContents(
>     at org.apache.cassandra.db.Memtable.access$000(
>     at org.apache.cassandra.db.Memtable$1.runMayThrow(
>     at
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>     at java.util.concurrent.ThreadPoolExecutor$
>     at
> Any help will be appreciated.   
> If I update the schema while a node is down, the new schema is loaded before the flushing
when the node is brought up again, correct?  
> Thanks,
> -gabe

View raw message