Introduction
Problem
Vault unexpectedly shuts down.
Prerequisites:
All versions of Vault, including Enterprise.
Cause
- Inspecting the Vault service log reveals this:
systemd[1]: vault.service: Main process exited, code=killed, status=9/KILL
systemd[1]: vault.service: Unit entered failed state.
systemd[1]: vault.service: Failed with result 'signal'.
-
Inspect the Operating System log file:
systemd[1]: vault.service: Failed with result 'oom-kill'.
systemd[1]: vault.service: Main process exited, code=killed, status=9/KILL
systemd[1]: vault.service: A process of this unit has been killed by the OOM killer.
kernel: [10348627.870188] Out of memory: Killed process 2203 (vault) total-vm:18366968kB, anon-rss:15237768kB, file-rss:0kB, shmem-rss:0kB, UID:997 pgtables:33344kB oom_score_adj:0
Note the "oom-kill" and "Out of memory" error messages. This indicates that the server has run out of available memory and killed the Vault process.
Solutions:
Review the memory allocation and requirements for the Vault server and platform that it's deployed on.
Outcome
Having sufficient memory allocated to the platform/server that Vault is running on should prevent the OS from killing the Vault process due to insufficient memory.
Additional Information
Hardware Sizing for Vault Servers: Hardware sizing for Vault servers