Android Studio : Too many Open JDK Platform Binary process

I usually get this problem on my Android Studio.

enter image description here

Gradle often sync failed with this error. When I open Task Manager I could see too many Open JDK Platform Binary running like the below.

enter image description here

My RAM usage goes up to 100% due to this ( 8GB RAM), when I restart my laptop, it disappear and my Gradle will sync successfully. How can I fix this?


I solved this issue by turning off the Mobile Hotspot in windows 10. I don't know what's the reason but it worked for me. While building gradle make sure Mobile Hotspot is turned off.