You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Tomer Pearl <To...@Contextream.com> on 2015/02/18 13:02:59 UTC

Deleting Statistics.db at startup

Hello,

I have received the following error
ERROR [SSTableBatchOpen:2] 2015-01-19 13:55:28,478 CassandraDaemon.java (line 196) Exception in thread Thread[SSTableBatchOpen:2,5,main]
java.lang.OutOfMemoryError: Java heap space
        at org.apache.cassandra.utils.EstimatedHistogram$EstimatedHistogramSerializer.deserialize(EstimatedHistogram.java:335)
        at org.apache.cassandra.io.sstable.SSTableMetadata$SSTableMetadataSerializer.deserialize(SSTableMetadata.java:462)
        at org.apache.cassandra.io.sstable.SSTableMetadata$SSTableMetadataSerializer.deserialize(SSTableMetadata.java:448)
        at org.apache.cassandra.io.sstable.SSTableMetadata$SSTableMetadataSerializer.deserialize(SSTableMetadata.java:432)
        at org.apache.cassandra.io.sstable.SSTableReader.openMetadata(SSTableReader.java:225)
        at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:194)
        at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:184)
        at org.apache.cassandra.io.sstable.SSTableReader$1.run(SSTableReader.java:264)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

I have found a solution here:
http://www.mail-archive.com/user%40cassandra.apache.org/msg23682.html
Which advice to delete the statistics.db file.

My question is what is the consequences of deleting this file every time the node is starting up? Performance wise or other.

Thanks,
Tomer.


Re: Deleting Statistics.db at startup

Posted by Robert Coli <rc...@eventbrite.com>.
On Wed, Feb 18, 2015 at 4:02 AM, Tomer Pearl <To...@contextream.com>
wrote:

>  My question is what is the consequences of deleting this file every time
> the node is starting up? Performance wise or other.
>

You waste the time Cassandra spends to regenerate it.

I personally would not institute an operational practice whereby I
regularly purged these files to avoid OOM.

=Rob