Answer the question
In order to leave comments, you need to log in
Why does Java on Linux consume more memory than on Windows?
Actually, I write for Android. I ran away to a light arch + xfce so that Android Studio with music would work smoothly.
As a result, it turned out that on a light linux, java itself in processes eats up twice as much memory. I had to forget about the music in spotify.
I have intel core i3, 3gb ram. It costs J DK 8 from Oracle , because the studio writes they say "everything will be even worse on open jdk." Where is it worse if 2.9 GB is actually occupied by two processes of 800 MB each and a couple of simpler ones?
Until I ran away to Windows, tell me where the problem could be.
PS immunity from thrown stones.
Answer the question
In order to leave comments, you need to log in
Maybe Java is going crazy with x64.
As a partial solution to this and other issues with memory, I can recommend installing zram, in fact it is a swap, but compressed in memory. Due to the minimum load on the CPU, it allows you to fit more information in memory, and sometimes even speed up memory work. This thing is also often available on Android mobiles in custom firmware.
3 gigabytes for an android developer is very very small. And the second question is how do you determine how much memory is occupied?
The problem is primarily in Android Studio itself - it is very voracious. The alternative is Eclipse.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question