Closed KHALIFA-SH closed 11 months ago
Fixed with "bufferSizeMegabytes" allocation
Hi. Sorry for a late answer. The JVM has a user-settable upper limit on the maximum amount of allocatable direct buffer memory
. It can be controlled by -XX:MaxDirectMemorySize=<size>
option to java
invocation. The stack trace indicates that you hit that limit.
The solution is to set smaller buffer like @kshkur suggests or set useOffHeapBuffer
to false
in Tjahzi configuration so that the buffer will be allocated on java heap.
Discussed in https://github.com/tkowalcz/tjahzi/discussions/120