redhat-developer / redhat-developer/vscode-java

High CPU Usage

Open
#3,841 8 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Potentially related issues:

Image

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

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 with the related issues 2734 and 3387, then reproduce the reported high CPU usage with VS Code Remote on the AL2 instance using Red Hat extension v1.36.0. Profile the Java/JDT language-server process shown in the report; the issue is done when the excessive CPU usage is understood and addressed or the required diagnostic evidence is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.