Android Studio start many instance of java.exe until run out of ram


Recently I encountered this error of Android Studio 4.1 . It start many instance of java.exe (OpenJDK Platform binary) until run out of RAM (I have 10gb of RAM).

enter image description here

I cannot sync, build projects. I have uninstall it and reinstall Android Studio 4.1 but the same thing happened. This is the error message I receive from AS after 10 minutes it build (normally only takes about 2 mins) : The first result from the daemon was empty. Most likely the process died immediately after connection.

Does anyone have this error and how to fix it? Thanks.


I have found the problem. I use Mobile Hotspot on Windows 10, switched it off and the Gradle deamon will run normal again.

Answered By – ngoson

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published