Skip to content

Memory usage of the dart:analysis_server #52808

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

Closed
makhosi6 opened this issue Jun 28, 2023 · 1 comment
Closed

Memory usage of the dart:analysis_server #52808

makhosi6 opened this issue Jun 28, 2023 · 1 comment

Comments

@makhosi6
Copy link

I wanted to bring to your attention an issue regarding the memory usage of the dart:analysis_server.

I noticed that the dart:analysis_server is consuming an excessive amount of memory on my machine, even though there are no open Flutter/Dart projects at the moment.

I kindly request your assistance in resolving this matter. If there are any steps or recommendations you could provide to mitigate the memory-intensive behavior of dart:analysis_server, it would be greatly appreciated.
Below I have included a few files that might be helpful. Thank You in Advance.

top -l 1 | grep dart

  •   38306  dart             0.0  02:53:41 6/1   1   54     23G   0B    23G   732   1     running  *0[1]      0.00000 0.00000    501 419201595 575    1095      71        365221449 1582      127523379  18307   46       0.0   0      0      makhosi            N/A    N/A   N/A   N/A   N/A   N/A ```
    
mem

System

  System Version: macOS 13.4 (22F66)
  Kernel-Version: Darwin 22.5.0
  Chip: Apple M2

Dart (dart --version)

       Dart SDK version: 3.0.0 (stable) (Thu May 4 01:11:00 2023 -0700) on "macos_arm64"

Flutter (flutter doctor -v)

      [✓] Flutter (Channel stable, 3.10.0, on macOS 13.4 22F66 darwin-arm64, locale en-ZA)
       • Flutter version 3.10.0 on channel stable at /opt/flutter
       • Upstream repository https://github.com/flutter/flutter.git
       • Framework revision 84a1e904f4 (7 weeks ago), 2023-05-09 07:41:44 -0700
       • Engine revision d44b5a94c9
       • Dart version 3.0.0
       • DevTools version 2.23.1
   
   [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
       • Android SDK at /Users/makhosi/Library/Android/sdk
       • Platform android-33, build-tools 33.0.2
       • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
       • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
       • All Android licenses accepted.
   
   [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
       • Xcode at /Applications/Xcode.app/Contents/Developer
       • Build 14E300c
       • CocoaPods version 1.12.0
   
   [✓] Chrome - develop for the web
       • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
   
   [✓] Android Studio (version 2022.1)
       • Android Studio at /Applications/Android Studio.app/Contents
       • Flutter plugin can be installed from:
         🔨 https://plugins.jetbrains.com/plugin/9212-flutter
       • Dart plugin can be installed from:
         🔨 https://plugins.jetbrains.com/plugin/6351-dart
       • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
   
   [✓] IntelliJ IDEA Community Edition (version 2022.3.3)
       • IntelliJ at /Applications/IntelliJ IDEA CE.app
       • Flutter plugin can be installed from:
         🔨 https://plugins.jetbrains.com/plugin/9212-flutter
       • Dart plugin can be installed from:
         🔨 https://plugins.jetbrains.com/plugin/6351-dart
   
   [✓] VS Code (version 1.79.2)
       • VS Code at /Applications/Visual Studio Code.app/Contents
       • Flutter extension version 3.66.0
   
   [✓] VS Code (version 1.74.2)
       • VS Code at /Users/makhosi/.Trash/Code.app/Contents
       • Flutter extension version 3.66.0
   
   [✓] Connected device (2 available)
       • macOS (desktop) • macos  • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
       • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.133
   
   [✓] Network resources
       • All expected network resources are available.
   
   • No issues found!

:sample_analysis_server.dart.snapshot.txt

@makhosi6
Copy link
Author

I discovered #9086 #52447 #90868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant