java.lang.OutOfMemoryError

Direct buffer memory

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web259

  • via GitHub by biran0079
    ,
  • Stack trace

    • java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Bits.java:693)[na:1.8.0_91] at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)[na:1.8.0_91] at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)[na:1.8.0_91] at org.apache.cassandra.utils.memory.BufferPool.allocate(BufferPool.java:108)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.memory.BufferPool.access$1000(BufferPool.java:45)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.memory.BufferPool$LocalPool.allocate(BufferPool.java:387)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.memory.BufferPool$LocalPool.access$000(BufferPool.java:314)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.memory.BufferPool.takeFromPool(BufferPool.java:120)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.memory.BufferPool.get(BufferPool.java:92)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.util.RandomAccessReader.allocateBuffer(RandomAccessReader.java:87)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.compress.CompressedRandomAccessReader.access$100(CompressedRandomAccessReader.java:38)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.compress.CompressedRandomAccessReader$Builder.createBuffer(CompressedRandomAccessReader.java:275)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:74)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.compress.CompressedRandomAccessReader.<init>(CompressedRandomAccessReader.java:59)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.compress.CompressedRandomAccessReader$Builder.build(CompressedRandomAccessReader.java:283)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.util.CompressedSegmentedFile.createReader(CompressedSegmentedFile.java:145)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.util.SegmentedFile.createReader(SegmentedFile.java:133)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.sstable.format.SSTableReader.getFileDataInput(SSTableReader.java:1711)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.columniterator.AbstractSSTableIterator.<init>(AbstractSSTableIterator.java:93)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.columniterator.SSTableIterator.<init>(SSTableIterator.java:46)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.columniterator.SSTableIterator.<init>(SSTableIterator.java:36)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.sstable.format.big.BigTableReader.iterator(BigTableReader.java:62)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.SinglePartitionReadCommand.queryMemtableAndDiskInternal(SinglePartitionReadCommand.java:580)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.SinglePartitionReadCommand.queryMemtableAndDisk(SinglePartitionReadCommand.java:492)[apache-cassandra-3.0.8.jar:3.0.8] at com.stratio.cassandra.lucene.IndexService.read(IndexService.java:618)[cassandra-lucene-index-plugin-3.0.8.0.jar:na] at com.stratio.cassandra.lucene.IndexWriterWide.finish(IndexWriterWide.java:89)[cassandra-lucene-index-plugin-3.0.8.0.jar:na] at org.apache.cassandra.index.SecondaryIndexManager$IndexGCTransaction.commit(SecondaryIndexManager.java:958)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.CompactionIterator$1$1.onMergedRows(CompactionIterator.java:197)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator$MergeReducer.getReduced(UnfilteredRowIterators.java:484)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator$MergeReducer.getReduced(UnfilteredRowIterators.java:446)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.MergeIterator$ManyToOne.consume(MergeIterator.java:220)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:159)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:428)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:288)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:128)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.ColumnIndex$Builder.build(ColumnIndex.java:111)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.ColumnIndex.writeAndBuildIndex(ColumnIndex.java:52)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:149)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:125)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.realAppend(DefaultCompactionWriter.java:57)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.append(CompactionAwareWriter.java:109)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:182)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:78)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)[apache-cassandra-3.0.8.jar:3.0.8] at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionCandidate.run(CompactionManager.java:263)[apache-cassandra-3.0.8.jar:3.0.8] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_91] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    5 more bugmates