Skip to content

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

Open
datho7561 wants to merge 1 commit into
redhat-developer:mainfrom
datho7561:add-config-to-increase-m2e-cache
Open

Add a setting to specify the Maven project cache size#4493
datho7561 wants to merge 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants