-
Notifications
You must be signed in to change notification settings - Fork 408
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
CPU 800% #2799
Comments
Thanks for the jfr file. It definitely helps. Yes, if something like a paste action is taking a long time (I clearly saw certain delegate commands taking anywhere from 6s-60s) then clearly the language server is busy with some other computations. In regular usage, I only usually see that on project import. There can be a moment where the language server has signalled it's ready to accept requests, but is still busy with certain aspects of the project build. This definitely doesn't seem like that though, since the server is already up and handling requests for some time. I noticed there were about 12 worker threads, all active at once. That might explain the slowness : Pretty much all but one have a call stack that looks like this : Seems like Is there something about the project that in the workspace that might be causing this ? Is this something new that didn't happen on previous versions ? |
In fact, I only did two copy-paste actions in VSCODE and waited for the JFR result until the end |
Yes. It has been running smoothly for three years (in my work) until the last two versions had this problem |
I've been using the same project for two years, not quite like it's caused by the project |
Even your most recent CC'ing @snjeza in case there is something she may be aware of. |
@mozhuanzuojing could you attach a project example? |
There are no exact tests, but the version was lowered from my colleague's machine before, and at 1.18.0 it was no problem. |
Tested with this parameter today, and there is no change. |
I'm very sorry, the company's internal projects cannot be shared; and because the project (about 5000 java files) and dependent (about 3000 jars) are relatively large, I feel unable to make a sample project. However, can you add some special logging in vscode.java, so that I can record some specific help information on this basis.
|
I think this is an upstream Eclipse issue. |
After installing this package, and after copying and pasting in vscode, the change in CPU usage suddenly increased to 1100%, and then gradually decreased to 300%, lasting for more than 5 minutes. The number of stutters when copying and pasting has been reduced a lot. |
@mozhuanzuojing I can't reproduce this issue. |
@mozhuanzuojing Could you try VS Code 1.22.2?
|
Using this verison to test on two computers, copy-paste no longer stutters(<2s).
|
A related issue - eclipse-jdtls#2799 Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
A related issue - eclipse-jdtls#2799 Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
- Handle paste event & smart semicolon detection synchronously (main thread) - Permit only a single code action to be handled at once A related issue - eclipse-jdtls#2799 Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
- Handle paste event & smart semicolon detection synchronously (main thread) - Permit only a single code action to be handled at once A related issue - #2799 Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
Version: 1.81.1 (system setup)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
vscode.java 1.21.0
In normal use, the java plugin occupies a lot of CPU (800%), It lasted half an hour
It feels related to the slow copy-paste, I now write code in two minutes and paste a line of code.
java log.zip
flight_recording_1707Eclipse11788_1.zip
The text was updated successfully, but these errors were encountered: