redhat-developer / redhat-developer/vscode-java

Tips for performance when opening big projects like Keycloak?

未关闭
#2,537 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Maven performance question
主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

I'm working with Keycloak, which is a big code base.

Opening the project is quite frustrating: it takes 5+ minutes for the things to settle down. It seems that just closing and reopening vscode with the project open will take very long as well, at least if there are any changed files (like after small git pull).

I wonder if too much of the code base is compiled since the compilation also shows errors for modules that are not shown when compiling with maven on command line (which takes 2 minutes btw). Maybe the active maven profile is not obeyed? Keycloak code base might have some maven modules that are not maintained anymore and it would be desirable to include only the relevant ones.

I would appreciate any pointers on how to troubleshoot and optimize the performance of opening a big project such as Keycloak.

Thank you!

Environment
  • Operating System: Ubuntu 20.04.4 LTS
  • JDK version: OpenJDK Temurin-11.0.15+10
  • Visual Studio Code version: 1.68.1 (x86)
  • Java extension version: redhat.java@1.8.0
Steps To Reproduce
  1. git clone https://github.com/keycloak/keycloak
  2. open the project
Current Result
Expected Result
Additional Informations

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件或测试。通过在 Ubuntu 20.04.4 上克隆 Keycloak,在配备 redhat.java 1.8.0 的 VS Code 1.68.1 中打开它,并观察项目初始化和编译来复现该报告;调查是否包含 Maven 配置文件或无关模块。完成标准是记录下原因,并给出可执行的优化或配置指导。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
devtools, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。