Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Memory leak when ContextRefresher is used to refresh context

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

Maintainers usually reply within 1 day

@mp911de is already working on this.

Since Jul 14, 2025.

Assessment

This issue has not been assessed yet.

Description

type: bug

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

Dominant language
Java
Stars
291
Forks
152
Avg merge
7h 10m
Merged PRs (30d)
23

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.

More from spring-cloud/spring-cloud-vault

All issues in spring-cloud/spring-cloud-vault

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.