System specifications: 16 GB RAM, GTX 1050 8GB, i7 8th gen, HP OMEN 17T(2018), Win 10. On opening android studios(Fresh download), multiple(80+) OpenJDK platform binary files(consume 100MB each) are opened during Gradle build(binaries can be seen running on task manager in the given image). These files take 97% of my system RAM, following which android studio crashes due to failed Gradle sync/unable to start Gradle daemon(unable to allocate memory for object heap). These rogue OpenJDK files do not close even after I terminate android studios and continue consuming RAM. Uninstalling and reinstalling android studios do not seem to help.
my normal RAM consumption is 20-27% and all other system processes run fine, I have McAfee antivirus on at all times.