Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Oct 31, 2025

Backports the following commits to 9.1:

When a linux process dies and the core process memory is dumped, which
parts of the memory to output are controlled by the coredump filter. By
default the JVM dumps anonymous memory (ie heap and direct memory) and
file-backed memory (ie mmaps), and private huge pages. However, the
default of dumping file-backed memory for Elasticsearch is problematic;
these can be enormous, and they also aren't very useful since the
indices will likely be available when investigating the crash.

This commit sets the coredump filter when running on Linux to omit
file-backed memory from coredumps. Although the JVM has diagnostic VM
options for controlling the filter, they end up causing the filter to be
inherited, which is from the server CLI, another Java process, which has
the file-backed memory bits set. Instead of using the JVM options we
set it via the special proc filesystem.
@rjernst rjernst requested a review from a team as a code owner October 31, 2025 13:11
@rjernst rjernst added :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >refactoring auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Oct 31, 2025
@elasticsearchmachine elasticsearchmachine merged commit 4422bad into elastic:9.1 Oct 31, 2025
35 checks passed
@rjernst rjernst deleted the backport/9.1/pr-137300 branch October 31, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >refactoring Team:Core/Infra Meta label for core/infra team v9.1.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants