flutter / flutter/flutter-intellij

Flutter IntelliJ leaks memory over time

Open
#5,722 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## 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](https://user-images.githubusercontent.com/1226812/130686551-b0d83333-4041-4a54-a12a-9666efa32c6a.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.