flutter-intellij: Huge memory leak with dart 2.7.0

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.

flutter doctor -v
[✓] Flutter (Channel beta, v1.11.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.11.0 at /home/lock/bin/flutter
    • Framework revision 856a90e67c (3 weeks ago), 2019-11-08 18:00:01 -0800
    • Engine revision af04338413
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/lock/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /home/lock/Android/Sdk
    • Java binary at: /home/lock/bin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Android Studio (version 3.5)
    • Android Studio at /home/lock/bin/android-studio
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 10
  • Comments: 16 (2 by maintainers)

Commits related to this issue

Most upvoted comments

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.

Thanks @georgeherby! Let us know if you run into any difficulties using devtools to collect memory info.

I will be happy to help, at a conference for the next few days so won’t get a chance until Monday.