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

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

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

FWIW an update for the CSV Plugin has been pushed, with mention of a memory issue in the change notes; might be worth updating

0
Comment actions Permalink

Same memory issue with phpstorm 2020.1.1.  Only temporary solution I found is to downgrade to 2019.3.

1
Comment actions Permalink

I am having the same issue with Ultimate 2020.1.1.  I almost returned my MAC.  Jetbrains - you guys must be better.  I have submitted the logs to both Apple and Itellij. You guys are better than this.  I had to downgrade like Ferx suggested.  I don't know what I lost by doing that.  Note: I am doing react-native development on a MacBook.

 

Edited by Garfield Heron
0
Comment actions Permalink

Had the same problem. Disabling the CSV plugin solved this.

1
Comment actions Permalink

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

0
Comment actions Permalink

Domas,

CSV plugin is a 3rd party so please report the feedback to the plugin author.

As for the memory issues unrelated to the plugin, please submit a memory snapshot to our support or tracker for investigation.

0
Comment actions Permalink

I have had problems with IntelliJ memory usage for years. I've upgraded to a 32GB MacBook Pro and still have problems depending on what I am doing. As long as I only have a couple of projects open it seems fine. But with all the projects I work on open it eventually has serious problems. Intellij is responding fine right now but its virtual memory usage is ridiculous. I've configured it for a 2GB heap so it is obviously using an enormous amount of off-heap memory.

0
Comment actions Permalink

@Ralph, please capture a memory snapshot and submit it to IntelliJ IDEA support. The team will investigate.

0
Comment actions Permalink

For the JB crew, this issue is years old now and has been reported over and over again by dozens of users. Asking everyone to turn in their logs is not the answer. There is obviously a core problem with your product or it would not be this widespread and this long lasting.

0
Comment actions Permalink

Daniel,

I see your disappointment, but in this thread, people are reporting completely different issues from different IntelliJ-based IDEs. So the reasons are different. Some issues are more obvious than others and definitely on our radar and in the roadmap planned or in work already. Others - depends on some particular project, setup, configuration, and often to investigate them we need thread dumps, CPU and memory snapshots or IDE logs, that's why we are requesting them.

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
Comment actions Permalink

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

0
Comment actions Permalink

Ralph,
You got a reply from the team and I guess there is a good recommendation to check.
You can also turn on the memory indicator in the IDE to see how much it uses exactly (right-click in the bottom right corner and turn on the memory indicator).

0
Comment actions Permalink

Yes, I got an email. I have had the memory indicator on in Intellij since I started using it many years ago. But I believe it only shows on-heap usage, which I don't believe is the problem.

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

For me, the memory increases when I place the cursor on a line that contains a suggestion, like class import and then I use the keyboard key combo to resolve the error "import class". Immediately, the heap spikes and the app runs out of memory.

1
Comment actions Permalink

Dear Jetbrains folks, I am encountering this issue among several others in the new 2020 builds (used 2020.1 and 2020.2).

Last day I had to delete all of my .idea folders to prevent the IDE from crashing on start right away.

This is unacceptable. Fix you 2020 releases! I am a professional getting paid to program not beta testing your latest features. I will eject myself from your ecosystem if you can't deliver a stable product in the future. I'd rather use VSCode than dealing with crashing IDEA's half of the time.

 

Sincerely, one of your IntelliJ ultimate users

0

Please sign in to leave a comment.

Have more questions?

Submit a request