The indexer
In the screenshots, I see you have a
total of 4GB of RAM memory and in the
/etc/wazuh-indexer/jvm.options file you configured:
-Xms4g
-Xmx4gThis means you are trying to assign all the machine memory to the Java Virtual Machine (jvm.options) and it is not possible.
Option 1:If you have a
total of 4GB of RAM memory, you can set the configuration of the
jvm.options to
2GB like this:
-Xms2g
-Xmx2g
Or Option 2:
If you can
extend the machine RAM memory to a total of 8GB you should be able to use the
/etc/wazuh-indexer/jvm.options like:
-Xms4g
-Xmx4g
Keep in mind the memory specified in /etc/wazuh-indexer/jvm.options file should not exceed 50% of the machine total RAM memory.
Another thing you could try is to increase the service timeout time to avoid timeout errors when it is initializing. You can follow these commands to do so:
# sudo mkdir /etc/systemd/system/wazuh-indexer.service.d# echo -e "[Service]\nTimeoutStartSec=180" | sudo tee /etc/systemd/system/wazuh-indexer.service.d/startup-timeout.conf
Then, reload the daemon:
$ sudo systemctl daemon-reload
And finally restart the services:
# sudo systemctl restart wazuh-indexer