CLion use 600% of CPU
Answered
Ubuntu on wayland 18.04
Cpu i7 7700HQ. I mean, that processor is powerfull enought
600% of CPU when i try to type some cpp code
On any project, without plugins
latest 2018.2 and latest 2018.3 too
What can i do?
How can i understand why CLion use a lot of CPU?
Please sign in to leave a comment.
Hello! Sorry for the inconvenience. Please enable memory indicator (`File | Settings | Appearance & Behavior | Appearance | Show memory indicator`) and keep an eye on it for some time (the indicator will appear in the bottom right corner of the CLion window). If it is close to the limit at the time when you are experiencing the problems, then try increasing the Xmx JVM option according to this guide. Sometimes CPU usage may decrease if you provide CLion with enough heap memory. Does it help?
350MB / 1987MB. There are enought memory, but it still use a lot of CPU
How can i get infromation about CPU usage in CLion?
When I turn on power save mode Clion works perfectly, but without syntax highlighting
You can capture a CPU snapshot and send it to clion-support at jetbrains.com, we will analyse it.
Also you can try disabling `C/C++ | Data flow analysis`, `C/C++ | Unused code` and `General | Simlifiable statement` inspections on the `Preferences | Editor | Inspections` tab, it might help.
Where can i find CLion support?
CPU prof: https://yadi.sk/d/3izmnwkKR53gpg
refactor->rename makes CLion to be freezed upto 10 minutes.
We will take a look at the snapshot. As for the freezes, please send automatically generated thread dumps which are located in the logs folder to support email (clion-support at jetbrains.com, "at" means @, just in case).
We've analyzed the provided CPU snapshot. Unfortunately, for now we can't suggest anything else except disabling `C/C++ | Data flow analysis`, `C/C++ | Unused code` and `General | Simlifiable statement` inspections. We are working hard on CLion performance improvements and are planning that CLion 2019.1 will contain some important fixes. Please stay tuned.
macos, have the same problem since High Sierra (Sierra was OK I think).
Disabling those analyses has some effect (usually CPU usage drops from 400-600% to ~150%).
Completely freezes when debugging (unresponsive, have to kill it).
I`m frustrated and migrating to xcode. 2019 EAP didn't change anything for me.
Also I'm noting that I don't have those problems with other jetbrains IDEs (pycharm, rider)
>Completely freezes when debugging (unresponsive, have to kill it).
@Adam, if it's possible, please provide automatically generated thread dumps which are located in the logs folder to clion-support at jetbrains.com.
Same problem here with CLion 2019.1.2 on a Corei7/16GB MacBook with MacOS Mojave (10.14.4). A simple renaming freezes the IDE and clangd + CLion process eat the CPU ~120-300%. Disabling "Dara Flow Analysis", "Unused Code", "Simplifiable Statements" had no effect.
I'm using IntelliJ and PyCharm at the same machine with zero performance issue.
Same problem for me working on a ROS project. Even simple scrolling and typing / code complemention bumps CPU Usage of all 8 cores up to 100% resulting in massive lags. Pretty much unusable in the current state.
Same problem here with CLion 2019.1.4 on a Corei7/32GB iMac (Retina 5K, 27-inch, 2017) with MacOS Mojave (10.14.5).