nx-console icon indicating copy to clipboard operation
nx-console copied to clipboard

Determines CPU to boost uncontrolably after update to 2024.1

Open sorinvasilescu opened this issue 1 year ago • 5 comments

Current Behavior

After the latest IntelliJ update (2024.1), each time after launching IntelliJ I get an orphaned process (process remains open after the IDE is closed) that determines the CPU to boost wildly until it ramps up the fans to max and starts overheating (temps in the 90s C).

The process is /usr/local/bin/node /Users/sorin/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/nx-console/nxls/main.js --stdio

The process continues to run after the IDE is closed. Several such processes remain if the IDE is closed and reopened several times. The process must be sigkilled, does not respond to sigterm and seems to otherwise keep running indefinitely.

Note: This is not related to any IntelliJ indexing or other processes and completely goes away when disabling the nx-console plugin

Expected Behavior

Don't make my laptop sound like it wants to take off.

Steps to Reproduce

  1. Start IntelliJ with the nx-console plugin enabled
  2. Hear your laptop spin its fans like crazy

Failure Logs / Images / Videos

Environment

  • MacBook Pro 16 2019 with Intel i9, MacOS Sonoma 14.4.1 (23E224)
  • Nx Console version: 1.21.0
  • IntelliJ version: 2024.1

sorinvasilescu avatar Apr 18 '24 11:04 sorinvasilescu

Thanks for the report @sorinvasilescu this really shouldn't happen!

Could you provide some logs? Go to Help > Diagnostic Tools > Debug Log Settings... and then insert #dev.nx.console:trace. Then paste the idea.log or sections of it when the error happens.

Also the daemon.log & daemon-error.log would be useful. You can find their location by running nx daemon --log

I suspect something is wrong with file watching, there should be logs in this case. Thank you!

MaxKless avatar Apr 18 '24 14:04 MaxKless

Getting the same thing.

fjanicki avatar Apr 22 '24 18:04 fjanicki

This is related to https://github.com/nrwl/nx-console/issues/2031

jaysoo avatar May 01 '24 17:05 jaysoo

Hey! Can you try on the latest version? :) I made some changes that should fix these issues. If you could report back whether it still happens on 18.21.0/1.23.0 that would be amazing!

MaxKless avatar May 03 '24 12:05 MaxKless

Sorry for the lack of answers, apparenlty my Github notifications are going to a black hole 😂

Yeah, about #2031, I wouldn't say high CPU load, I mean I could barely feel it, but what it does happen on these Intel Macs is that certain patterns cause them to boost non-stop, which while not showing up as high CPU load per se, really hurts thermals, acoustics (fan are at 100%) and battery life.

Looks perfectly ok after updating to 1.23.0, after the initial start-up the CPU ramps down and settles at a normal 50 degrees C. Also, quitting the IDE also closes that node process in a consistent manner. From my point of view, this can be closed, I can no longer reproduce it.

Great job, thanks a lot for the help and sorry again for the lack of earlier response.

sorinvasilescu avatar May 05 '24 07:05 sorinvasilescu

No worries, thanks for the patience! Closing this as completed. Let me know if anything similar crops up again :)

MaxKless avatar May 06 '24 08:05 MaxKless