I'm running Android Studio on an underpowered machine, and when I was monitoring Android Studio's memory consumption I noticed multiple "java" processes, some even forking another process as a child and some taking as much as up to 1 GB!
Is this normal behavior or is it the result of a misconfiguration?
And how can I configure this to work with less number of java processes?
Will changing the project's JDK and Gradle to an externally installed (more recent version) help rather than using the ones shipped with Android Studio?
Steps 1 enable memory view(if not done yet):Go to preferences(command+,) Search for memory. Inside Appearance & Behavior -> Appearance-> Window options -> enable show Memory indicator.
1–1.5 gb will be consumed by most of your OS and processes running parallely. So with android studio basically you'll see that 80–85% ram is being used if you have 4gb ram. In case of 8gb it's more than enough.
Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. Your JVM will be started with Xms amount of memory and will be able to use a maximum of Xmx amount of memory. Save the studio.
As @PiPRocks said, using Android Studio on an underpowered machine is almost impractical.
For smooth working of Android Studio your machine should have atleast 8GB of RAM and if it has a GPU it adds up but is not necessary.
Coming to Your Question...
This is normal behaviour of Android Studio. It keeps the IDE process and Gradle process separate (with the name of 'java'). And if you are running an Emulator, you'll see another process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With