flutter / flutter/flutter-intellij
Flutter IntelliJ leaks memory over time
- 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.

After running overnight:

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
Assessment
This issue has not been assessed yet.