java.lang.OutOfMemoryError: Direct buffer memory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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

Users with the same issue

2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.