redhat-developer / redhat-developer/vscode-java
High CPU Usage
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Potentially related issues:
- https://github.com/redhat-developer/vscode-java/issues/2734
- https://github.com/redhat-developer/vscode-java/issues/3387
This extension destroys my cpu usage and all the recommendations in those two threads have failed.
My setup:
- VS Code Remote extension
- AL2 instance
- RedHat version v1.36.0
The command of the largest process is:
/home/arusignu/.vscode-server/extensions/redhat.java-1.36.0-linux-x64/jre/17.0.13-linux-x86_64/bin/java
--add-modules=ALL-SYSTEM
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/sun.nio.fs=ALL-UNNAMED
-Declipse.application=org.eclipse.jdt.ls.core.id1
-Dosgi.bundles.defaultStartLevel=4
-Declipse.product=org.eclipse.jdt.ls.core.product
-Djava.import.generatesMetadataFilesAtProjectRoot=false
-DDetectVMInstallationsJob.disabled=true
-Dfile.encoding=utf8
-DwatchParentProcess=false
-XX:+UseParallelGC
-XX:GCTimeRatio=4
-XX:AdaptiveSizePolicyWeight=90
-Dsun.zip.disableMemoryMapping=true
-Xmx3G
-Xms100m
-Xlog:disable
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/arusignu/.vscode-server/data/User/workspaceStorage/4a284380c823b70cb2d621c30898f2d8/redhat.java
-Daether.dependencyCollector.impl=bf
-jar /local/home/arusignu/.vscode-server/extensions/redhat.java-1.36.0-linux-x64/server/plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar
-configuration /home/arusignu/.vscode-server/data/User/globalStorage/redhat.java/1.36.0/config_linux
-data /home/arusignu/.vscode-server/data/User/workspaceStorage/4a284380c823b70cb2d621c30898f2d8/redhat.java/jdt_ws
--pipe=/run/user/22366284/lsp-d372c76bc679ed73a377c6a781c99796.sock
Happy to provide more info on request
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从相关 issue 2734 和 3387 开始,然后使用 Red Hat extension v1.36.0 在 AL2 实例上通过 VS Code Remote 重现报告的高 CPU 使用率。对报告中显示的 Java/JDT language-server 进程进行性能分析;当过高的 CPU 使用率得到理解并解决,或所需的诊断证据得到记录时,该 issue 即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- devtools, performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100