question

gmldba_107428 avatar image
gmldba_107428 asked Erick Ramirez commented

sstablesplit returns "OutOfMemoryError: Direct buffer memory"

1631814404600.png

What can I do to use more of my 32 GB of memory?

jvm
1631814404600.png (51.2 KiB)
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

Edit the sstablesplit script directly and modify this section:

if [ "x$MAX_HEAP_SIZE" = "x" ]; then
    MAX_HEAP_SIZE="256M"
fi

Set the maximum heap to a higher value. For example, set it to 1GB:

    MAX_HEAP_SIZE="1G"

If you have large partitions in the SSTable, it might be necessary to bump it up further to 2GB. Cheers!

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

gmldba_107428 avatar image gmldba_107428 commented ·
Thank you!
0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ gmldba_107428 commented ·

Not a problem. Cheers!

0 Likes 0 ·