Hi Daan,
Thanks for using Wazuh!
That value for Wazuh indexer is very common and it is actually recommended, you can check under /etc/wazuh-indexer/jvm.options and assign a value that better suits your environment but about 40-50% of the available RAM is ok, just follow these rules:
- Use no more than 50% of available RAM.
- Use no more than 32 GB.
Under /etc/wazuh-indexer/jvm.options find:
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xms2g
-Xmx2g
Besides the JVM memory options previously shared, to improve the performance of Wazuh indexer (OpenSearch), this
guide can be followed with the following considerations for Wazuh Indexer:
- Edit /etc/wazuh-indexer/opensearch.yml file, add or edit the following value:
- bootstrap.memory_lock: true
- Create the following directory:
- mkdir -p /etc/systemd/system/wazuh-indexer.service.d/
- Create this file and add the following value with this command:
cat > /etc/systemd/system/wazuh-indexer.service.d/wazuh-indexer.conf << EOF
[Service]
LimitMEMLOCK=infinity
EOF - Reload and restart the wazuh-indexer service
systemctl daemon-reload
systemctl restart wazuh-indexer - You can verify that the setting was successfully changed by checking the value of mlockall:
curl -k -u <username>:<password> "https://<wazuh-indexer_ip>:9200/_nodes?filter_path=**.mlockall&pretty"
Also, do you have a screenshot of the timeout errors? is it the session timeout when you have to log in back again?