Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
High Memory Consumption by Journald Causing Cluster Instability
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Journald seems to consume more than expected amount of memory causing cluster nodes instability.
Environment
- Centos, RedHat - v7+
Cause
- The
systemdjournal is configured by default to store logs only in a small ring-buffer in_/run/log/journal_, which is not persistent. - Systemd-journald on some linux distros is configured to auto-detect which storage system to use for journal files, "volatile" or "persistent". The
/var/log/journalfile is not created by default, so the in-memory (tmpfs)_/run/log/journal_location is used. By default, it is configured to allow up to 4 GB of log data be stored. As a consequence, heavy journal activity can eat up memory to the default of 4 GB for the_/run_file system. For memory constrained environments, this can be significant
Resolution
To limit the amount of in-memory logs stored in /run/log/journal, set the following in /etc/systemd/journald.conf :
Bash
xxxxxxxxxx--- RuntimeMaxUse=500M RuntimeMaxFileSize=10M ---VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message