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

java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:658)
at java.nio.DirectByteBuffer.(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at org.apache.cassandra.io.compress.BufferType$2.allocate(BufferType.java:35)
at org.apache.cassandra.io.util.RandomAccessReader.allocateBuffer(RandomAccessReader.java:69)
at org.apache.cassandra.io.compress.CompressedRandomAccessReader.(CompressedRandomAccessReader.java:88)
at org.apache.cassandra.io.compress.CompressedRandomAccessReader.open(CompressedRandomAccessReader.java:58)
at org.apache.cassandra.io.util.CompressedPoolingSegmentedFile.createPooledReader(CompressedPoolingSegmentedFile.java:124)
at org.apache.cassandra.io.util.PoolingSegmentedFile.getSegment(PoolingSegmentedFile.java:63)
at org.apache.cassandra.io.sstable.format.SSTableReader.getFileDataInput(SSTableReader.java:1743)
at org.apache.cassandra.io.sstable.format.big.SimpleSliceReader.(SimpleSliceReader.java:57)
at org.apache.cassandra.io.sstable.format.big.SSTableSliceIterator.createReader(SSTableSliceIterator.java:66)
at org.apache.cassandra.io.sstable.format.big.SSTableSliceIterator.(SSTableSliceIterator.java:43)
at org.apache.cassandra.io.sstable.format.big.BigTableReader.iterator(BigTableReader.java:75)
at org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(SliceQueryFilter.java:246)
at org.apache.cassandra.db.filter.QueryFilter.getSSTableColumnIterator(QueryFilter.java:62)
at org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:270)
at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:64)
at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:2009)
at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1813)
at org.apache.cassandra.db.Keyspace.getRow(Keyspace.java:360)
at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:85)
at org.apache.cassandra.cql3.statements.SelectStatement.readLocally(SelectStatement.java:288)
at org.apache.cassandra.cql3.statements.SelectStatement.executeInternal(SelectStatement.java:304)
at org.apache.cassandra.cql3.statements.SelectStatement.executeInternal(SelectStatement.java:76)
at org.apache.cassandra.cql3.QueryProcessor.executeInternal(QueryProcessor.java:310)
at org.apache.cassandra.db.SystemKeyspace.getSSTableReadMeter(SystemKeyspace.java:956)
at org.apache.cassandra.io.sstable.format.SSTableReader$GlobalTidy.ensureReadMeter(SSTableReader.java:2234)
at org.apache.cassandra.io.sstable.format.SSTableReader$InstanceTidier.setup(SSTableReader.java:2045)
at org.apache.cassandra.io.sstable.format.SSTableReader.setup(SSTableReader.java:1986)
at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:461)
at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:363)
at org.apache.cassandra.io.sstable.format.SSTableReader$4.run(SSTableReader.java:501)
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

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
Samebug visitor profile picture
Unknown user
Once, 2 years ago
6 more bugmates

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