Performance and memory problems when using CLion
Assuming you have a fairly large code base in modern C++, or rely heavily on templates or macros usage, performance and memory issues during indexing and editing are possible in CLion. While we constantly work on improving CLion performance and memory usage, we recommend you check these Performance tuning tips in our web help:
- Increase memory heap
- Speed up code analysis
- Speed up indexing (exclude directories and files, cut into subprojects, etc.)
To report a performance problem, please follow these instructions. To find IDE logs to attach to the problem, use this link.
Please sign in to leave a comment.
Are there any other actionable items for performance issues? I have more than sufficient memory available sitting unused, yet something as simple as toggling between header and cpp file takes 10+ seconds. CLion performance seems to have steadily degraded over the past year I've been using it to the point that it's bordering on unusable for me now.
Any updates on this? I have the same exact issue with base IDEA.
I enabled the memory indicator as suggested, where would I expect to see the indicator?
It's in the bottom right corner of the window
Do we have any solution for this performance issue? I am using Pycharm inside my virtual box and its eating all my memory and slows down my performance. How can I fix this performance issue. Please suggest.
Having very similar issue with IDEA.
os: macOS mojave
cpu: 8th gen i7
mem: 16gb @ 2400mhz
Intellij IDEA @ 2018.3.1
No matter how much memory I've allocated to IDEA, it tries to consume it all and the editor gets really slow and non-responsive. I've allotted 1 -> 1.5 -> 2 -> 2.5 gb of ram and it still eats it all up. Doesn't matter what its set to.
This is a serious issue and extremely bothersome. May be going back to vscode if this doesn't get resolved.
I am having the same problem. I set the heap to 2g so that I can get more time before the memory is used up.
I may not continue my subscription and just switch to vscode. This problem has been around for a long time and has never been resolved.
FYI - I get this with a clean setup developing angular projects.
2Gb is a default xmx value. I would recommend you to increase the value for Angular project. Also you can provide the memory snapshots to our support for further investigation, especially if you suspect some memory leak.
My CLion (2018.3.4) goes crazy with memory usage. It starts normal but sometimes at reloading my CMake it hangs some minutes and than shows the "Out of Memory" window. I already allowed -Xmx 20'000 MB but it still happens. This cannot be normal right?
I've just upgraded phpstorm from 2018.2.1 to 2019.1 and memory issues started immediately. increased Xmx to 2GB, Activity monitor shows 2.53GB in use, and still feels slowish at times.
Same with Intellij (no surprise) - I have Xmx to 7750m and using IDE for ~4 hours ends with about 4.5 GB unreleasable memory....
to be fair the problem was gone next day, can't attribute that to anything. I disabled few plugins when I was having the problem and even was in running in PowerSave mode, but nothing make any difference. Next day I began work expecting to be annoyed by the memory issue, but quickly forgot about that until I realized it was gone, I'm hitting 700MB average, just like before. go figure ¯\_(ツ)_/¯
I am also having the same issues on Webstorm, Phpstorm and IDEA, no matter how much I increase the memory heap it eventually reaches the limit. I'm having this for months now and I have to restart the IDEs on regular intervals to keep working, these have to be memory leaks.
I use WebStorm on two MacOS - MacBook Pro 32gb ram and MacMini 16gb ram. No matter how much heap I set WebStorm use it all. When I set 4gb sometimes it need 2 days, sometimes if I have multiple instance of WebStorm it use it during 4-6 hours. It's not enough to close WebStorm instance - I must close all instances, kill app and start it again to get memory free.
It's really annoying.
After some time clangd uses about 300M and max heap size: 7,9G, allocated 7.8G, used 7.8G. OS X 10.14.5, Clion 2019.1.4.
I did the same but it’s only give me more time between restarts...
I have the same issues on PhpStorm for a few days now. Can't continue working like this.
Webstorm is using all my RAM (16GB). It is freezing my ubuntu 18.04 with no option more than power off the computer.
From top:
98778 clion 1.7 40:27.85 48 1 4123- 2802M- 1280K 427M- 98778 1
In May when I first reported this, the problem went away by itself a couple days later. Since then it has happened again only once or twice (during crunch time period, of course) so I just went back to previous version. When job permitted I tried again and it worked fine, so I think this must be related to maybe an update process or some sort of maintenance job, because it always happened during the first minutes of launching, and it occurred whether or not I was using the editor.
The only thing I did the first time was to disable as much plugins as possible, and even worked a while in power save mode.
Dear all,
Memory and high CPU issues require memory dumps or snapshots to investigate. Please report them in our tracker and we'll proceed. These issues can't be handled by just a description as it's completely unclear what's going on for you there. Thank you.
Having the same problem, latest PhpStorm increases RAM consumption constantly until eventually nothing is left, Ubuntu 18.04 does not respond so I have to power off
Hi, I am facing the same issue of low memory after using webstorm fro 1-2 hrs and after that its kind of impossible to keep using webstorm. Is there any timeline when will this issue be fixed?
Roman, M Faizan,
Please report snapshots and logs to the support of the corresponding product. I'm not sure you are talking about the same issues here. And in each case, some detailed investigation is required.
FWIW - I am see the same issue in Rubymine and Webstorm almost daily. The longer I use the IDE the more memory it consumes until it becomes painfully slow and I have to restart. The larger the codebase the faster it happens.
Seeing as I just renewed my JetBrains subscription and this is still happening across all or nearly all products, it's very disappointing. Just had Rider puke after consuming 11gb of memory on Mac. Granted it's for a 100 project sized solution, but the memory consumed is kind of ridiculous given the entire code base.
Also having this issue in IDEA Ultimate 2019.1.
Ubuntu 19.04
Rubymine 2019.2.2
Java 11.0.3 (the one that Toolbox gave I guess)
htop command to analyse my memory usage
For me, it seems that it has nothing to do with heap memory size (because it stays the same overtime). It seems to be the IDE itself. I only need to open Rubymine and let it go for a while (few hours) and it can jump from 620M to 1300M without doing anything. I even tried to stop the debug instance but it did nothing. What's weird is that stopping the debug instance is not releasing the small memory it took.
But what I found by doing this is that stop/starting a new debug instance or restarting it also increases my laptop memory usage each time, without freeing the previous one, though it has nothing to do with the fact that it increases memory usage without doing anything.
Probably because I let my Rubymine with a debug instance opened? I should investigate more.
Similar issue for me. CLion EAP 2019.3 is using 11GB of RAM and I get a message that memory is getting low and I should consider increasing the heap size. Very frustrating.
By the way, I am on Mac OS X and the clion.vmoptions has "-Xmx2000m". Yet the heap memory limit reported in the bottom right corner is over 9GB! Very often it will show it being fully used.