cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Nentwig <>
Subject Re: Memory leak with Sun Java 1.6 ?
Date Sun, 12 Dec 2010 15:52:20 GMT

On Dec 10, 2010, at 19:37, Peter Schuller wrote:

> To cargo cult it: Are you running a modern JVM? (Not e.g. openjdk b17
> in lenny or some such.) If it is a JVM issue, ensuring you're using a
> reasonably recent JVM is probably much easier than to start tracking
> it down...

I had OOM problems with OpenJDK, switched to Sun/Oracle's recent 1.6.0_23 and...still have
the same problem :-\ Stack trace always looks the same:

java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(
        at java.nio.ByteBuffer.allocate(
        at org.apache.cassandra.utils.FBUtilities.readByteArray(
        at org.apache.cassandra.db.ColumnSerializer.deserialize(
        at org.apache.cassandra.db.ColumnSerializer.deserialize(
        at org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(
        at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(
        at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(
        at org.apache.cassandra.db.RowMutationSerializer.deserialize(
        at org.apache.cassandra.db.RowMutationSerializer.deserialize(
        at org.apache.cassandra.db.RowMutationVerbHandler.doVerb(
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

I'm writing from 1 client with 50 threads to a cluster of 4 machines (with hector). With QUORUM
and ONE 2 machines quite reliably will soon die with OOM. What may cause this? Won't cassandra
block/reject when memtable is full and being flushed to disk but grow and if flushing to disk
isn't fast enough will run out of memory?
View raw message