IDEA 2020.1 - anyone noticing increased memory usage?
已回答
Upgraded to 2020.1 recently and noticed it seems to run out of memory sometimes where there was no problem with 2019.3 on the same project.
I upgraded the max heap from 750MB to 1GB when it ran out last week (also submitted a memory report) but it crashed again yesterday.
The project I'm working isn't that big - lots of spring-boot microservices though. I generally do local development as two separate IDEA project, running in two windows at the same time (one that has a few of the front-end projects open and one that has some of the back end projects).
Has anyone noticed increased memory usage from IDEA?
请先登录再写评论。
Please report memory issues at https://youtrack.jetbrains.com/newIssue?project=IDEA and provide the memory snapshots/logs per https://intellij-support.jetbrains.com/hc/articles/207241235 and https://intellij-support.jetbrains.com/hc/articles/207241085. There may be a problem specific to your project/frameworks and the plug-ins that others will not experience, therefore asking in the forum doesn't make a lot of sense and will not get it fixed, unlike properly reporting such problems in YouTrack. Thank you.
I'm having the same problem. It cropped up soon after upgrading to 2020.1.1
Reinstalling didn't help. Increasing heap size didn't help either. Downgraded to 2019.3 for the time being.
OS: Windows 10, Python 3.8
An update: the problem cropped up again the moment I updated the CSV plugin even when using 2019.3; the same plugin was updated when I was using 2020.1.1 earlier. I'm beginning to suspect the problem lies with the CSV plugin rather than 2020.1.1 as that seems to be the common factor.
I was experiencing this same issue - can confirm that disabling the CSV plugin fixed the issue for me.
Same here, I've set the memory Xmx to 10 GB but still got an Out of Memory error.
15 GB was used by one window of Chrome with just 25 tabs though.
Maybe I should decrease Xmx in my scenario?
Wait, it's 2021 now. I think I should find another thread
@Lutosław please make sure you are using 2021.1.1 or 2021.1.2 EAP - as there were related issues fixed. If still problem remains please file an issue at https://youtrack.jetbrains.com/issues/IDEA with memory dump and IDE logs. Thank you.
For uploading you can use https://uploads.jetbrains.com or any file sharing service.
I'm seeing the same issue with 2021.1.2. When I check the memory that the system reports Intellij using, it is far less than what Intellij says I am using.
>the system reports Intellij using, it is far less than what Intellij says I am using.
Please note that the memory OS reports includes the swapped memory. IDE memory indicator shows the currently used memory among all the Java heap size that was allocated for the IDE.
Same problem here. Using macOS 11.4 and IntelliJ IDEA 2021.1.2 (Ultimate Edition)
Build #IU-211.7442.40, built on June 1, 2021
Even with an empty project (empty php project), over 5GB of RAM is taken up and several hundred percent of CPU usage.
It is impossible to work with the IDE any longer!
For me, the issue seems to come and go. It isn't totally blocking me.
Please report at https://youtrack.jetbrains.com/issues/IDEA with memory snapshot taken at the moment of high memory usage by the IDE and IDE logs (Help | Collect Logs and Diagnostic Data action).
So finally the problem is solved.
In my case I had to invalidate the caches. Important was to check "Clear file system cache and Local History". The first approach to clear only the downloaded shared indexes did not change anything.
I assume there was a conflict between the caches and iCloud. I had temporarily moved some projects to an iCloud folder some time ago.
I can confirm that IntelliJ's memory usage has gone beyond crazy. Especially after the 2021.3 update, the IDE freezes up a lot, necessitating restarts around 10 times a day, followed by agonizing waits until it gets its re-indexing sorted through. Tried cache clear, no effect. My machine has 16GB of memory, using 8GB for IntelliJ alone where 4GB used to work fine two versions ago. It seems to me you have produced a gigantic memory leak. If IntelliJ wasn't the 'prescribed' method to work on this project, I would have already ditched it.
Please raise a new issue at https://youtrack.jetbrains.com/issues/IDEA and provide additional information according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems so that our support and development teams could take a look at it.
Unfortunately, without diagnostic data, it's hard to guess what exactly went wrong.
Try disabling third-party plugins. (https://www.jetbrains.com/help/idea/managing-plugins.html)
Actually messing with the plugins made it a hell of a lot worse. I even disabled some of the bundled ones I don't need, like Kotlin or Spaces. Now it's even freezing up when simply switching tabs. Sometimes recovers, sometimes doesn't.
In this case please raise a new issue at https://youtrack.jetbrains.com/issues/IDEA and provide a memory snapshot along with the IDE logs. (Help | Collect Logs and Diagnostic Data)
Thank you!
This will unfortunately not work for me. You state that you are collecting sensitive data. I am not disposed to hand out information under these conditions.
IDE keeps freezing up. The last time I had this phenomenon which ultimately forced me to change IDE was with CLion, many years back. It is almost impossible to work with IntelliJ atm
Rolled back to 2021.2.3 (via toolbox) and the problem disappeared. There is definitely something fishy with your latest release.
Hi there,
Same thing here. 2022.1.1 is using memory in a way I can't understand, neither explain. 2021 version was pretty cool ... but since I've made this update, I'm getting late in almost all my deadlines ... I've to restart IDEA or even reboot the computer up to 10 times per day, and no matter that, it keeps on freezing up.
Stephen
Does the problem persist if you disable all non-bundled plugins and restart the IDE? Preferences | Plugins | ⚙️ | Disable all downloaded plugins
If it doesn't, please raise a new issue at https://youtrack.jetbrains.com/issues/IDEA and provide a memory snapshot along with IDE logs (Help | Collect Logs and Diagnostic Data)
Hi Arina,
- First, I removed the Snap version of IntelliJ. The vesion I was using was installed via Snapcraft (I use Ubuntu).
- Then, I installed IntelliJ via Toolbox. It stayed stable for a little while, then the same problem started to show up again.
- Last, I disabled all the plugins (as you recommended), and it's okay now.
Thanks for your help.