spring-projects / spring-projects/spring-boot

Provide a more memory-efficient NIO-based file system watcher in DevTools

Open
#9,882 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

File Watcher thread takes about of 98% of entire application memory.Memory consumption is still growing after application start.
It is also impossible to exclude log files from third party libraries that need to write to files under resources directory.
It would be nice to be able to exclude files by location or by file extension. Something similar to restart.include/restart.exclude properties.

Contributor guide

Open the 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.

Research direction

Start by locating the Spring Boot DevTools File Watcher entry point and investigating the reported memory growth after application startup. Define how an NIO-based watcher and exclusions by location or file extension should behave, then verify both memory usage and the requested exclusion scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
devtools, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.