Skip to content

Instantly share code, notes, and snippets.

@thedebugger
Created January 21, 2016 23:25
Show Gist options
  • Save thedebugger/1f84af576f77406a734e to your computer and use it in GitHub Desktop.
Save thedebugger/1f84af576f77406a734e to your computer and use it in GitHub Desktop.
Cassandra Out of native memory error
ERROR [CompactionExecutor:2969] 2016-01-20 09:32:30,256 CassandraDaemon.java (line 198) Exception in thread Thread[CompactionExecutor:2969,1,main]
java.lang.RuntimeException: Out of native memory occured, You can avoid it by increasing the system ram space or by increasing bloom_filter_fp_chance.
at org.apache.cassandra.utils.obs.OffHeapBitSet.<init>(OffHeapBitSet.java:49)
at org.apache.cassandra.utils.FilterFactory.createFilter(FilterFactory.java:85)
at org.apache.cassandra.utils.FilterFactory.getFilter(FilterFactory.java:79)
at org.apache.cassandra.io.sstable.SSTableWriter$IndexWriter.<init>(SSTableWriter.java:431)
at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:102)
at org.apache.cassandra.db.compaction.CompactionTask.createCompactionWriter(CompactionTask.java:282)
at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:152)
at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:60)
at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)
at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:197)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment