-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage and memory consumption even if doing nothing #3387
High CPU usage and memory consumption even if doing nothing #3387
Comments
I tried to dump the "redhat.java" process consumed 14GB RAM, and open the dump with visualvm. See screentshots here microsoft/vscode-java-debug#1330 (comment) |
Meet same problem |
This is extremely annoying and happens daily for me. |
Similar problems. on leaving my WSL dormant for the night I find it in the morning with 100% memory usage (24 GiB) and 40+ RedHat java agents running. |
I disabled and reenabled the extension and it used initially high-cpu, but after few minutes it went down. |
Same here, and we are using this extension at work and several of my colleagues are also blocked by this daily. |
I'm still able to reproduce the issue with ".vscode-server/extensions/redhat.java-1.28.1-linux-x64/jre/17.0.10-linux-x86_64" on JDK11 sources:
However I noticed that now the issue occurs when I put my test into the root folder of downloaded JDK sources:
|
The issue still occurs with JDK17 sources. |
I'm still facing the issue with |
Still there with VSCode 1.89.1 and redhat.java-1.31.0-linux-x64 on JDK17 sources. |
Still here without Java extensions. Only writing latex with two vscode window open then the cpu will go to 60%-80%. |
This extension appears to be abandoned. I've deleted it and use Android Studio for working on Java code. |
I can reproduce the issue when setting
The imported projects contain @wkia @maphdze @johnmccutchan @witlingw @archenroot @tonyganchev @zhiqiang-hhhh could you try to set
Please check also <openjdk|jdk11u-dev|your_project_root>/.vscode/settings.json |
Definitely related to null analysis. I basically see the following error on repeat (using just the instructions at #3387 (comment) ). It's not extremely consistent, as there's a few instances where it it didn't enter a loop but there's definitely a problem.
Setting |
You can consistently reproduce it in the following way:
|
Using version 1.32 now, I uninstalled the extensions, and install it again, the issue seems still there for me. Also tried this setting in my workspace: Still consumes a lot of memory (growing up to OOM error), and CPU ~1400%. |
@wkia I can't reproduce the issue.
|
I've cleaned workspace directory in both Windows and WSL. Removed ".vscode*" folders from $HOME and from the project directory. @snjeza Did you try to reproduce with the steps I provided at the very beginning? In my logs, I created a new file in VSCode (Ctrl+N), copy-n-pasted content of MyApp there, and saved as "openjdk/MyApp.java". |
Yes, I did but still can't reproduce the issue.
Could you reproduce the issue outside of WSL? |
Yes, I'm able to reproduce it on Windows 11: All of the tries above ended up with OOM error: Every time the issue occured I clicked "Increase..." again and again, so now my current workspace settings is:
|
For the following settings, the try ended up with OOM error on Windows 11:
The logs: As it is seen from logs, the reproducer took ~20 mins. No other extesions are installed, but "Language Support for Java(TM)" by Red Hat. |
@wkia Could you attach your settings.json? |
@snjeza |
@wkia Could you try the following:
|
@wkia You can also try to add
|
@snjeza Here are the results:
Double checked without the changes above - issue is still reproducible. Cleaned workspace before each test case. Tested on Windows 11, not WSL. |
@snjeza I'm happy to use the setting above as a workaround, however I don't like an idea to tune settings for all new workspaces I create. Is it going to be fixed somehow in further releases? |
@snjeza
And it is still reproducible on WSL even with:
|
@wkia Could you try the following:
|
@snjeza It seems helping. Thanks! |
originally reported by @wkia at microsoft/vscode-java-debug#1408
The text was updated successfully, but these errors were encountered: