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:

To report a performance problem, please follow these instructions. To find IDE logs to attach to the problem, use this link.

 

80 comments
Comment actions Permalink

@Relyon, could you please contact the IntelliJ IDEA support team by submitting a request here: https://intellij-support.jetbrains.com/hc/en-us/?intellij-idea

0
Comment actions Permalink

Ok. Anyway, as it was said seems it's not about Java memory but some native libraries and frameworks. Please share your concerns in the support ticket. I'm sure the team will provide you all the necessary explanations.

0
Comment actions Permalink

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.

0
Comment actions Permalink

This is laughably bad. I am having the same memory problem as most others on this thread. I have been a paying customer for years but that is about to end.

0
Comment actions Permalink

Incredibly helpful to know where the problem lies, but doesn't do me much good, since the built-in Git functionality is one of the main reasons why I use JetBrains products :(

0
Comment actions Permalink

Ralph,
Can you please point me to the ticket? I'll try to check and help.

0
Comment actions Permalink

I let CLion run over night and it's working fine now without any memory leaks still at 139 MB.  So it is specifically the git plugin module that is leaking memory.

 

0
Comment actions Permalink

I enabled the memory indicator as suggested, where would I expect to see the indicator?

0
Comment actions Permalink

Still the same problems with memory usage and CSV plugin. This is getting ridiculous 

0
Comment actions Permalink

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 ¯\_(ツ)_/¯ 

 

Edited by Gsegura
0
Comment actions Permalink

I'm having issues as well, with CLion. It's just been terribly slow lately (currently running 2019.3.2).

I've noticed it really well when I tried to do a regex search on my entire project. IDE unusable for close to a minute.

0
Comment actions Permalink

>The telltale signs are the IDE starts to crawl and I end up getting the beachball of death.

 

Do you mean that the IDE runs out of memory? Please try taking memory snapshots (https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems) when the memory usage is close to its limit and provide them along with your log folder zipped (Help > Compress Logs and Show in...)

You can enable memory indicator to see how much memory is being used: in Preferences | Appearance & Behavior | Appearance, Window options section, tick the Show memory indicator checkbox. Memory usage will be shown in the status bar, in the lower right corner of the application frame

Note that the memory snapshot can include sensitive info, so I'd suggest creating a support ticket to avoid disclosing it

0
Comment actions Permalink

Hmm, I didn't have the CSV plugin in my plugins, so maybe it is an additional issue,  I experienced it because the ChangeReminder plugin which scans filesystems and holds paths for files to notify when changes happen may have been recursively scanning in an endless loop.  With .git you have a huge set of files and diffs inside of the .git directory.

 

The main thing that did it for me was disabling this, which in turn disabled the git plugin.

0
Comment actions Permalink

WebStorm (v2.19.3.3) consumes 4.27GB and works very slow for me too:

 

Edited by Artem
0
Comment actions Permalink

I think it's not the CSV plugin for me.
Disabling all unnecessary plugins was one of the first things I did iirc, but I'd have to check that.

0
Comment actions Permalink

Thank you, I have just downloaded it and will see how it fares.

0
Comment actions Permalink

Same here, version intellij Idea 2019.3, just opening the project and indexing.. then boom: out of memory error popup (despite -Xmx set to 3Gb!).

Switching to Eclipse.

0
Comment actions Permalink

looks similar to https://youtrack.jetbrains.com/issue/WEB-41324 that is fixed in 2019.3; if the issue persists in the most recent EAP, please create a support ticket, providing files I've asked for

0
Comment actions Permalink

As requested, I created a ticket and uploaded the hprof zip. However, I suspect that the issue is in off-heap memory so I am not sure how much help this will be.

.... And as I suspected I received an email saying the hprof was useless.

Edited by Ralph Goers
0

Please sign in to leave a comment.

Have more questions?

Submit a request