Visual Studio code spiking Java cpu usage

  • Platform information:
    • Hardware: XenServer VM, 2x2ghz cpu, 2gb memory
    • OS: debian 9.3
    • Java Runtime Environment:

java version “1.8.0_131”
Java™ SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot™ 64-Bit Server VM (build 25.131-b11, mixed mode)

  • openHAB version: 2.2.0 1120

I’m working on testing the 2.2 branch and have started using the visual studio code editor. The editor works fine but the java process for openhab on my vm is getting absolutely hammered while I’m working on rules. VSCode also falls way behind on error checking. I’m also seeing lots of:

[WARN ] [eclipse.lsp4j.jsonrpc.RemoteEndpoint] - Unmatched cancel notification for request id

The id number just keeps incrementing up. If I let it sit long enough, it will catch back up. The bigger the rules file the worse it gets.

Could you please

  1. See if your issue is listed here
  2. If not, submit an issue with a detailed log and steps to reproduce

cc: @sjka

There is an issue open for the warnings. Looks like Kai has added a function to filter them out. I think I’m 2 or 3 days behind on snapshot so I’ll pull a new version.

I don’t see mention of the CPU consumption. I will open one for that.

1 Like