Thank-you so very much for the response and guidance.
Our server has 8G of RAM, so I have now set the -Xms and -Xmx values to 4g. The free memory looks like:
root@tceat-wzh01:/etc/wazuh-indexer# free -h
total used free shared buff/cache available
Mem: 7.8Gi 1.2Gi 4.3Gi 824Ki 2.6Gi 6.6Gi
Swap: 4.0Gi 12Ki 4.0Gi
Having completed the change and attempting to restart the wazuh-indexer, I receive the following errors:
root@tceat-wzh01:/etc/wazuh-indexer# systemctl restart wazuh-indexer
Job for wazuh-indexer.service failed because the control process exited with error code.
See "systemctl status wazuh-indexer.service" and "journalctl -xeu wazuh-indexer.service" for details.
root@tceat-wzh01:/etc/wazuh-indexer# systemctl status wazuh-indexer
× wazuh-indexer.service - wazuh-indexer
Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2025-07-10 12:39:34 UTC; 14s ago
Docs:
https://documentation.wazuh.com Process: 4326 ExecStart=/usr/share/wazuh-indexer/bin/systemd-entrypoint -p ${PID_DIR}/wazuh-indexer.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 4326 (code=exited, status=1/FAILURE)
CPU: 19.400s
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.Command.main(Command.java:101)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
Jul 10 12:39:34 tceat-wzh01 systemd[1]: Failed to start wazuh-indexer.service - wazuh-indexer.
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Consumed 19.400s CPU time.
The details from journalctl -xeu wazuh-indexer.service are:
Jul 10 09:11:03 tceat-wzh01 systemd[1]: Starting wazuh-indexer.service - wazuh-indexer...
░░ Subject: A start job for unit wazuh-indexer.service has begun execution
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has begun execution.
░░
░░ The job identifier is 146.
Jul 10 09:11:10 tceat-wzh01 systemd-entrypoint[880]: WARNING: A terminally deprecated method in java.lang.System has been called
Jul 10 09:11:10 tceat-wzh01 systemd-entrypoint[880]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.19.1.jar)
Jul 10 09:11:10 tceat-wzh01 systemd-entrypoint[880]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Jul 10 09:11:10 tceat-wzh01 systemd-entrypoint[880]: WARNING: System::setSecurityManager will be removed in a future release
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: Jul 10, 2025 9:11:11 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: WARNING: COMPAT locale provider will be removed in a future release
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: Exception in thread "main" org.opensearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: Likely root cause: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:501)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2833)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:227)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:146)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:373)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:181)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:172)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.cli.Command.main(Command.java:101)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
Jul 10 09:11:11 tceat-wzh01 systemd-entrypoint[880]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Jul 10 09:11:12 tceat-wzh01 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ An ExecStart= process belonging to unit wazuh-indexer.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 10 09:11:12 tceat-wzh01 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service has entered the 'failed' state with result 'exit-code'.
Jul 10 09:11:12 tceat-wzh01 systemd[1]: Failed to start wazuh-indexer.service - wazuh-indexer.
░░ Subject: A start job for unit wazuh-indexer.service has failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has finished with a failure.
░░
░░ The job identifier is 146 and the job result is failed.
Jul 10 09:11:12 tceat-wzh01 systemd[1]: wazuh-indexer.service: Consumed 13.146s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service completed and consumed the indicated resources.
Jul 10 12:39:26 tceat-wzh01 systemd[1]: Starting wazuh-indexer.service - wazuh-indexer...
░░ Subject: A start job for unit wazuh-indexer.service has begun execution
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has begun execution.
░░
░░ The job identifier is 1444.
Jul 10 12:39:31 tceat-wzh01 systemd-entrypoint[4326]: WARNING: A terminally deprecated method in java.lang.System has been called
Jul 10 12:39:31 tceat-wzh01 systemd-entrypoint[4326]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.19.1.jar)
Jul 10 12:39:31 tceat-wzh01 systemd-entrypoint[4326]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Jul 10 12:39:31 tceat-wzh01 systemd-entrypoint[4326]: WARNING: System::setSecurityManager will be removed in a future release
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: Jul 10, 2025 12:39:33 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: WARNING: COMPAT locale provider will be removed in a future release
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: Exception in thread "main" org.opensearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: Likely root cause: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:501)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2833)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:227)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:146)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:373)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:181)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:172)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.cli.Command.main(Command.java:101)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
Jul 10 12:39:33 tceat-wzh01 systemd-entrypoint[4326]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ An ExecStart= process belonging to unit wazuh-indexer.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service has entered the 'failed' state with result 'exit-code'.
Jul 10 12:39:34 tceat-wzh01 systemd[1]: Failed to start wazuh-indexer.service - wazuh-indexer.
░░ Subject: A start job for unit wazuh-indexer.service has failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has finished with a failure.
░░
░░ The job identifier is 1444 and the job result is failed.
Jul 10 12:39:34 tceat-wzh01 systemd[1]: wazuh-indexer.service: Consumed 19.400s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service completed and consumed the indicated resources.
Jul 10 12:49:23 tceat-wzh01 systemd[1]: Starting wazuh-indexer.service - wazuh-indexer...
░░ Subject: A start job for unit wazuh-indexer.service has begun execution
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has begun execution.
░░
░░ The job identifier is 1554.
Jul 10 12:49:28 tceat-wzh01 systemd-entrypoint[4521]: WARNING: A terminally deprecated method in java.lang.System has been called
Jul 10 12:49:28 tceat-wzh01 systemd-entrypoint[4521]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.19.1.jar)
Jul 10 12:49:28 tceat-wzh01 systemd-entrypoint[4521]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Jul 10 12:49:28 tceat-wzh01 systemd-entrypoint[4521]: WARNING: System::setSecurityManager will be removed in a future release
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: Jul 10, 2025 12:49:30 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: WARNING: COMPAT locale provider will be removed in a future release
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: Exception in thread "main" org.opensearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: Likely root cause: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/backup
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:501)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:301)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2833)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:227)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:146)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:373)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:181)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:172)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.cli.Command.main(Command.java:101)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
Jul 10 12:49:30 tceat-wzh01 systemd-entrypoint[4521]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Jul 10 12:49:31 tceat-wzh01 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ An ExecStart= process belonging to unit wazuh-indexer.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 10 12:49:31 tceat-wzh01 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service has entered the 'failed' state with result 'exit-code'.
Jul 10 12:49:31 tceat-wzh01 systemd[1]: Failed to start wazuh-indexer.service - wazuh-indexer.
░░ Subject: A start job for unit wazuh-indexer.service has failed
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ A start job for unit wazuh-indexer.service has finished with a failure.
░░
░░ The job identifier is 1554 and the job result is failed.
Jul 10 12:49:31 tceat-wzh01 systemd[1]: wazuh-indexer.service: Consumed 17.966s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support:
http://www.ubuntu.com/support░░
░░ The unit wazuh-indexer.service completed and consumed the indicated resources.