Skip to content

Flutter IntelliJ leaks memory over time #5722

Open
@jacob314

Description

@jacob314

Steps to Reproduce

Open Flutter Devtools in Android Studio. Leave an application running in Android Studio over night.
Memory usage increases from around 1.4GB for Android Studio debugging a Flutter project to almost 4GB.

On a new run of the project with debugger and devtools enabled.
Screen Shot 2021-08-24 at 1 37 46 PM

After running overnight:
Screen Shot 2021-08-24 at 1 10 54 PM

This is enough that I tend to need to restart Android Studio about once every day for a mac with 16GB of ram to remain useable.
Notice we also appear to be leaking ports. Stopping and starting a Flutter app repeatedly causes the # of ports to climb.

Fyi @kenzieschmoll @terrylucas as this could be an opportunity to do some memory profiling on Android Studio to compare some of the Java profiling tools to DevTools.

Version info

Android Studio 20.20.3.1
Flutter dev channel
Flutter Plugin 59.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions