-
Notifications
You must be signed in to change notification settings - Fork 325
Huge memory leak with dart 2.7.0 #4143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am having the exact same thing. I was wondering by it was running so slow then realised I was up to 20gb. I restarted Intellij and it was back to normal but less than 30 minutes of running we are back to 9gb. I was not having this until I updated the most recent beta
The beta before did not have this |
@dluksza, @georgeherby, thanks for the reports. It sounds like you're both on the current Flutter beta version (
@dluksza, can you try disabling this option add see if the issue still reproduces? @georgeherby, can confirm whether you have this option enabled? We'll likely need more info - analysis server logs, profiling info - to diagnose the memory consumption issues. Things will be a little slow around here as many people are OOO for the next few days. @stereotype441 - can you follow up to get information to help diagnose the memory leak? We are seeing multiple reports of this; it's likely a recent (~flutter beta) regression. |
So i did have |
So I disabled it and it has not been leaking, unfortunately, IntelliJ also just updated to 2019.3, I will enable the setting again tomorrow, to confirm that the update to IntelliJ didn't help as it also meant Dart and Flutter plugins updated for 2019.3 |
I can confirm that removing |
@lambdabaa @bwilkerson - it looks like there's a significant memory leak with the ML completion code |
This will be restored once flutter/flutter-intellij#4143 is resolved and shipped.
Hi @dluksza and @georgeherby. Could you all share a bit more about your environment / development setup and the project you were working on? Alternatively if you can follow these instructions https://github.com/JetBrains/intellij-plugins/tree/master/Dart#how-to-open-the-dart-analysis-server-with-observatory-and-dart-devtools to get a memory snapshot from the Dart analysis server, that would be hugely helpful for us in tracking down the underlying issue. Thanks!! |
I will be happy to help, at a conference for the next few days so won't get a chance until Monday. |
Thanks @georgeherby! Let us know if you run into any difficulties using devtools to collect memory info. |
I have updated the most recent beta (hotfix 6) and I have re-enabled ML but I have not been able to replicate this anymore 🤔 |
So it just happened again but I didn't have the settings enabled to do the check the profile. I also did not have ML-enabled so not sure ML is anything to do with it! Restarting Dart Analysis server resulted in a release of 16gb! |
@liamappelbe So as I mentioned running with So i turned it off and like clockwork as soon as i have been using Intellij for a few hours, with an iOS sim IntelliJ is up to 11gb! This is with ML turned off and seems to be something else. When I open Activity Manager on Mac it breaks down the memory usage to 3gb for Intellij (fine) but Dart 7.73gb. I have attached a process sample from the Mac Activity Manager |
PS, I may not have followed the instruction properly, as I was unsure how to set Observatory to run for a flutter project, so ended up jsut opening the localhost in Chrome |
@lambdabaa So I am still getting this issue on Flutter |
Do you guys found a solution for that ? The problem seems to persist for me, becoming even worst. 15 minutes after launching intellijIdea, the CPU usage (from activity monitor, in macOS) shows 300 percent usage only from intellij, and if I go in details, more than 100 percent from the dart subsection (under intellij Idea). |
Same here with Android Studio. |
This functionality was removed from the Dart SDK, closing this issue. |
After upgrading to latest beta channel I've notice that code completion in getting slower over time, to the point it stops working completely. Also it is freezing from time to time. What I've also noticed is that my free memory level dropped to less than 1GB (I'm having 32GB ram in my machine and usually only 10 to 12GB are used).
Restarting
dart analysis
brings back over 20GB of free memory.BTW. I do have set
dart.server.additional.argument
to--enable-completion-model
.The text was updated successfully, but these errors were encountered: