How to configure direct_max_in_bytes

Hello All,

I am wanting to adjust the direct_max_in_bytes value , the documentation I have read deals with how adjust the jvm heap size but not the off heap size?


If anyone can advise that would be greatly appreciated.

Just to add more context, this is running in windows with the elasticservice,

from the elasticsearch manager I have adjusted the XX:MaxDirectMemorySize value but it doesnt have any affect on the "direct_max_in_bytes" value that I see when running Get _Nodes/_all/jvm

      "jvm" : {
        "pid" : 1408,
        "version" : "16.0.2",
        "vm_name" : "OpenJDK 64-Bit Server VM",
        "vm_version" : "16.0.2+7",
        "vm_vendor" : "Eclipse Foundation",
        "bundled_jdk" : true,
        "using_bundled_jdk" : true,
        "start_time_in_millis" : 1710772170660,
        "mem" : {
          "heap_init_in_bytes" : 12582912000,
          "heap_max_in_bytes" : 12582912000,
          "non_heap_init_in_bytes" : 7667712,
          "non_heap_max_in_bytes" : 0,
          "direct_max_in_bytes" : 0
        "gc_collectors" : [
          "G1 Young Generation",
          "G1 Old Generation"
        "memory_pools" : [
          "CodeHeap 'non-nmethods'",
          "CodeHeap 'profiled nmethods'",
          "Compressed Class Space",
          "G1 Eden Space",
          "G1 Old Gen",
          "G1 Survivor Space",
          "CodeHeap 'non-profiled nmethods'"
        "using_compressed_ordinary_object_pointers" : "true",
        "input_arguments" : [

Do I need to reboot the system or restart a service other than the elasticsearch windows service?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.