Hello!
From the error message you posted, it doesn't look like the jvm.options are in effect. I guess you restarted the service after changing the jvm.options right? How much memory does the server have?
To double-check what's the actual heap of the indexer, you can use the Dev tools, from the left menu in the wazuh dashboards, and run the query:
GET _cat/nodes?h=heap*&v
This should give you an answer like:
heap.current heap.percent heap.max
4.6gb 58 7.8gb
But with the heap size you specified.
You can also check it wirh a curl command like:
Another way to check it could be to inspect the gc.log file like:
# grep -i "gc,init" /var/log/wazuh-indexer/gc.log
[2023-03-15T14:15:43.414+0000][4573][gc,init] Version: 17.0.5+8 (release)
[2023-03-15T14:15:43.414+0000][4573][gc,init] CPUs: 8 total, 8 available
[2023-03-15T14:15:43.415+0000][4573][gc,init] Memory: 16008M
[2023-03-15T14:15:43.415+0000][4573][gc,init] Large Page Support: Disabled
[2023-03-15T14:15:43.415+0000][4573][gc,init] NUMA Support: Disabled
[2023-03-15T14:15:43.415+0000][4573][gc,init] Compressed Oops: Enabled (Zero based)
[2023-03-15T14:15:43.415+0000][4573][gc,init] Heap Region Size: 4M
[2023-03-15T14:15:43.415+0000][4573][gc,init] Heap Min Capacity: 8004M
[2023-03-15T14:15:43.415+0000][4573][gc,init] Heap Initial Capacity: 8004M
[2023-03-15T14:15:43.415+0000][4573][gc,init] Heap Max Capacity: 8004M
[2023-03-15T14:15:43.415+0000][4573][gc,init] Pre-touch: Enabled
[2023-03-15T14:15:43.415+0000][4573][gc,init] Parallel Workers: 8
[2023-03-15T14:15:43.415+0000][4573][gc,init] Concurrent Workers: 2
[2023-03-15T14:15:43.415+0000][4573][gc,init] Concurrent Refinement Workers: 8
[2023-03-15T14:15:43.415+0000][4573][gc,init] Periodic GC: Disabled
Let us know if this is helpful!