Performance and memory problems

Since CLion tries to parse your whole code base, including all the header files used, to understand your code correctly and provide accurate code completion, code navigation, refactorings and other intelligent features. On large code bases (especially when using Boost), performance and memory issues during indexing and editing are possible.

Increasing memory may help to resolve performance problems. To check the memory usage, enable the memory indicator in Preferences/Settings | Appearance & Behavior | Appearance | Show memory indicator.

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

 

79 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

Please sign in to leave a comment.

Have more questions?

Submit a request