Skip to content

Add a setting to specify the Maven project cache size - #4493

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
datho7561:add-config-to-increase-m2e-cache
Sep 1, 2026
Merged

Add a setting to specify the Maven project cache size#4493
datho7561 merged 1 commit into
redhat-developer:mainfrom
datho7561:add-config-to-increase-m2e-cache

Conversation

@datho7561

Copy link
Copy Markdown
Contributor

This new setting, java.jdt.ls.mavenProjectCacheSize, configures a command line option for jdtls that modifies m2e's project cache size. Increasing the project cache size can significantly decrease the loading time of Maven projects that have many subprojects, such as monorepos. However, doing this also uses more memory and risks causing an out of memory exception. Setting the project cache to a larger number can be used as a stop-gap solution for loading larger Maven projects while we investigate better methods of properly addressing the fact that Maven projects with many sub projects load very slowly.

Signed-off-by: David Thompson <davthomp@redhat.com>

@shin19991207 shin19991207 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, David!

@datho7561
datho7561 merged commit 0f340dc into redhat-developer:main Sep 1, 2026
2 checks passed
@datho7561 datho7561 added this to the End of July 2026 milestone Sep 1, 2026
@datho7561 datho7561 self-assigned this Sep 1, 2026
@datho7561 datho7561 moved this to Done in Java Tooling Sep 1, 2026
@lch1986216

Copy link
Copy Markdown

能不能解决大型项目,cpu占用高,自动编译卡主,跳转卡死的问题,像idea,eclipse一样流畅

@datho7561
datho7561 deleted the add-config-to-increase-m2e-cache branch September 4, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants