spring-cloud / spring-cloud/spring-cloud-vault

Memory leak when ContextRefresher is used to refresh context

Open
#757 0 comments 0 reactions 1 assignee View on GitHub

@mp911de is already working on this.

Since Jul 14, 2025.

type: bug
Dominant language
Java
Stars
291
Forks
152
Avg merge
11h 24m
Merged PRs (30d)
3

Description

When ContextRefresher is used to refresh the context, Spring Config Vault seems to be adding a bunch of ApplicationListeners to the context without cleaning up existing ApplicationListeners.

Reproduction:

vault_refresh.zip

Video:

https://github.com/user-attachments/assets/0510d5fd-859c-4edf-978f-d1b29eb4680b

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.