Skip to content
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

[Window] dart.exe consuming high memory usage #94147

Open
lswd opened this issue Nov 24, 2021 · 10 comments
Open

[Window] dart.exe consuming high memory usage #94147

lswd opened this issue Nov 24, 2021 · 10 comments
Labels
dependency: dart Dart team may need to help us engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list perf: memory Performance issues related to memory platform-windows Building on or for Windows specifically team-engine Owned by Engine team triaged-engine Triaged by Engine team

Comments

@lswd
Copy link

lswd commented Nov 24, 2021

微信截图_20211124152424

When I use AndroidStudio open the flutter project ,computer's memory will go up,Cause the computer to stall, It didn't work

Version information:
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.1165], locale zh-CN)
• Flutter version 2.0.5 at E:\jishuruanjian\fluttersdk\flutter
• Framework revision adc6878 (7 months ago), 2021-04-16 09:40:20 -0700
• Engine revision b09f014
• Dart version 2.12.3
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

@lswd lswd changed the title Run Window10 Run Flutter Project ,High computer memory Nov 24, 2021
@maheshmnj maheshmnj added the in triage Presently being triaged by the triage team label Nov 25, 2021
@maheshmnj
Copy link
Member

HI @lswd, Thanks for filing the issue. If I understand correctly you are referring to the dart.exe consuming high memory is that correct? if so please try deleting flutter/.pub-cache/hosted directory as mentioned here #56569 (comment).

Also, I see that you are using an older version of flutter could you please try upgradinging to latest stable 2.5.3 and verify if that helps resolve the issue.

Thanks

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 25, 2021
@maheshmnj maheshmnj changed the title Window10 Run Flutter Project ,High computer memory [Window] Flutter Project High memory usage Nov 25, 2021
@lswd
Copy link
Author

lswd commented Nov 26, 2021

@maheshmnj

stable 2.5.3, still the same problem

微信截图_20211126111930

Version information:
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19042.1165], locale zh-CN)
• Flutter version 2.5.3 at E:\jishuruanjian\fluttersdk\flutter_windows_2.5.3-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 1811693 (6 weeks ago), 2021-10-15 10:46:35 -0700
• Engine revision d3ea636dc5
• Dart version 2.14.4
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 26, 2021
@maheshmnj
Copy link
Member

@lswd

If I understand correctly you are referring to the dart.exe consuming high memory is that correct? if so please try deleting flutter/.pub-cache/hosted directory as mentioned here #56569 (comment).

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 26, 2021
@lswd
Copy link
Author

lswd commented Nov 26, 2021

@maheshmnj
yes,dart.exe consuming high memory,flutter/.pub-cache/hosted deleted,But have no effect

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 26, 2021
@maheshmnj
Copy link
Member

maheshmnj commented Nov 26, 2021

@lswd thanks for the info when you reboot the system and run the flutter app via Other IDE e.g vscode, do you still see the high memory usage for dart.exe or does it only happen in case of Android Studio?

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 26, 2021
@lswd
Copy link
Author

lswd commented Nov 30, 2021

@maheshmnj

The system has been restarted,vscode is the same problem, the memory footprint is getting higher and higher

微信图片_20211130112127

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 30, 2021
@maheshmnj maheshmnj changed the title [Window] Flutter Project High memory usage [Window] dart.exe consuming high memory usage Nov 30, 2021
@maheshmnj
Copy link
Member

Thanks for the confirmation, I am not able to reproduce the issue neither on stable nor on the master channel.

image

flutter doctor -v
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
    • Flutter version 2.5.3 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (6 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)    
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)        
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)      
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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.10+0-b96-7249189)

[√] VS Code (version 1.61.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.28.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1348]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 96.0.4664.45
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!
[√] Flutter (Channel master, 2.6.0-12.0.pre.765, on Microsoft Windows [Version 10.0.19042.1348], locale    
    en-US)
    • Flutter version 2.6.0-12.0.pre.765 at C:\flutter_sdk\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e961ea6f41 (11 days ago), 2021-11-18 22:38:05 -0800
    • Engine revision a3ef1d5351
    • Dart version 2.16.0 (build 2.16.0-20.0.dev)
    • DevTools version 2.8.0

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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.10+0-b96-7249189)

[√] VS Code (version 1.61.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.28.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1348]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 96.0.4664.45
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!

@maheshmnj maheshmnj added dependency: dart Dart team may need to help us passed first triage perf: memory Performance issues related to memory platform-windows Building on or for Windows specifically and removed in triage Presently being triaged by the triage team labels Nov 30, 2021
@zanderso
Copy link
Member

zanderso commented Dec 6, 2021

@lswd Does the Windows process explorer show the command line of the dart.exe that is consuming a lot of memory?

@lswd
Copy link
Author

lswd commented Dec 7, 2021

@zanderso
Yes,I feel Flutter is consuming memory,Whenever Flutter is run, the computer is slow

@maheshmnj maheshmnj added the engine flutter/engine repository. See also e: labels. label Jan 19, 2022
@chinmaygarde
Copy link
Member

Does the Windows process explorer show the command line of the dart.exe that is consuming a lot of memory?

We need this information to figure out what the Dart command is. We are wondering if this is the analysis server taking up a lot of memory. But it hard to tell without this information.

Also, how much memory is does the host have?

@chinmaygarde chinmaygarde added the P2 Important issues not at the top of the work list label Jan 24, 2022
@flutter-triage-bot flutter-triage-bot bot added team-engine Owned by Engine team triaged-engine Triaged by Engine team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency: dart Dart team may need to help us engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list perf: memory Performance issues related to memory platform-windows Building on or for Windows specifically team-engine Owned by Engine team triaged-engine Triaged by Engine team
Projects
None yet
Development

No branches or pull requests

5 participants