DontShaveTheYak / groovy-guru

Groovy Intellisense for Visual Studio Code
https://moonshine-ide.com/
Apache License 2.0
22 stars 4 forks source link

Very high CPU usage on remote #33

Open ErikParawell-SiFive opened 2 years ago

ErikParawell-SiFive commented 2 years ago

I have this extension installed on a remote machine. I'm not sure why, but it has a very high cpu utilization. It is worth mentioning that this repo I am using is very big, so maybe that's why.

Screen Shot 2022-08-22 at 12 34 59 PM
shadycuz commented 2 years ago

This is an issue with the underlying groovy language server. I will open an issue with them for you and link it back to here.

ErikParawell-SiFive commented 2 years ago

Thanks. I also just noticed it has been running for 1630h before I manually killed it. Also are there supposed to be multiple instances of it running? I think these might be zombie processes.

shadycuz commented 2 years ago

@ErikParawell-SiFive These are all really good questions that I wish I had an answer to. I kinda just inherited this thing. I used to have similar issues, but I don't anymore. I think I switched java versions. Let me load up my environment later today and I will see how many processes and stuff are running so we can compare. I will also look at which java version I am running.

ErikParawell-SiFive commented 2 years ago

Yeah no worries. I'll try and help out with this issue as much as I can, but if it can't be resolved with a reasonable amount of effort we can drop it. I also noticed that the language server you are using has some pretty recent commits that you may or may not be using in this current release.

RHEL8.5 (remote machine) $ java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)
shadycuz commented 2 years ago

Updating the LS version that is bundled with the extension is another thing that needs to be done. We used to use the https://github.com/GroovyLanguageServer/groovy-language-server directly but ended up forking it when it took a while to get our bug and features merged. This weekend I will look into either updating the fork https://github.com/DontShaveTheYak/groovy-language-server or just switching back to using the offical LS.

shadycuz commented 2 years ago

@ErikParawell-SiFive I have published a new version 0.6.0. Your extension should automatically update. I don't think the update will reduce the CPU load issue but can you check?