groovy-guru icon indicating copy to clipboard operation
groovy-guru copied to clipboard

Very high CPU usage on remote

Open ErikParawell-SiFive opened this issue 2 years ago • 6 comments

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

ErikParawell-SiFive avatar Aug 22 '22 19:08 ErikParawell-SiFive

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.

shadycuz avatar Aug 23 '22 14:08 shadycuz

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.

ErikParawell-SiFive avatar Aug 23 '22 17:08 ErikParawell-SiFive

@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.

shadycuz avatar Aug 23 '22 17:08 shadycuz

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)

ErikParawell-SiFive avatar Aug 23 '22 17:08 ErikParawell-SiFive

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 avatar Aug 23 '22 17:08 shadycuz

@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?

shadycuz avatar Aug 28 '22 20:08 shadycuz