java.lang.OutOfMemoryError: Direct buffer memory when enabling logger debugging

The issue is most likely the other way around: you’re allocating so much of the machine’s native memory for the heap that there’s no more room for the non-heap one.